ERROR - 2020-05-21 09:26:15.783481 GET /dwds/src/injected/client.js Error thrown by handler.
flutter web 瀏覽器啓動項目報錯
原文鏈接:https://blog.csdn.net/weixin_44259356/article/details/106252335
ERROR - 2020-05-21 09:26:15.783481
GET /dwds/src/injected/client.js
Error thrown by handler.
NoSuchMethodError: The method 'toFilePath' was called on null.
Receiver: null
Tried calling: toFilePath()
dart:core Object.noSuchMethod
package:dwds/src/handlers/injected_handler.dart 35:39 createInjectedHandler.<fn>.<fn>
切換fluttersdk後,這個問題困擾一天了,是版本問題,切換通道就可以解決了。
flutter channel
查看你當前使用的sdk版本
flutter channel ***
切換爲其他版本。***爲版本名稱