use*_*752 9 dart flutter flutter-web
从 IDE 直接运行到 chrome 时,Flutter Web 项目可以顺利运行,但是在调用flutter build web并托管构建的 Web 应用程序后,无法打开(只有一个空白页面)并显示此错误
Failed to load resource: the server responded with a status of 404 (Not Found)
main.dart.js:1
Failed to load resource: the server responded with a status of 404 (Not Found)
(index):1
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('http://localhost:8080/') with script ('http://localhost:8080/flutter_service_worker.js'): A bad HTTP response code (404) was received when fetching the script.
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
7427 次 |
| 最近记录: |