ERROR - 2020-05-21 09:26:15.783481 GET /dwds/src/injected/client.js Error thrown by handler.

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 ***

切换为其他版本。***为版本名称,然后再切换回来就可以啦

你可能感兴趣的:(Flutter)