相关疑难解决方法(0)

Flutter Web 因无法打开文件 client.js 而崩溃

我可以就这个错误向您寻求帮助当我第一次尝试使用 flutter run -d chrome 运行我的 flutter web 时会发生这种情况

Launching lib\main.dart on Chrome in debug mode...
Syncing files to device Chrome...                                       
25,220ms (!)
GET /dwds/src/injected/client.js
Error thrown by handler.
FileSystemException: Cannot open file, path = 'C:\Users\Acer\flutter\.pub-cache\hosted\pub.dartlang.org\dwds-2.0.1\lib\src\injected\client.js' (OS Error: The system cannot find the path specified.
, errno = 3)
dart:isolate  _RawReceivePortImpl._handleMessage
Run Code Online (Sandbox Code Playgroud)

如果我尝试使用

flutter run -d web
Run Code Online (Sandbox Code Playgroud)

它没有抛出任何错误,但在网站上它变成空白白色没有显示任何内容。无论如何感谢您的帮助

flutter flutter-web

8
推荐指数
1
解决办法
2283
查看次数

标签 统计

flutter ×1

flutter-web ×1