小编Mar*_*nce的帖子

无法编译 Web 应用程序

我正在尝试在网络上构建并运行 flutter firebase 项目,但是我一次又一次地收到此错误。我已将我的项目添加到 firebase 并已在 index.html 文件中添加了必要的详细信息,但仍然收到错误。这是详细的 -

[   +7 ms] Done persisting file store
[   +7 ms] Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use    
'dart compile
           js' instead.

../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_messaging_web-2.4.4/lib/src/internals.dart:2:1:     
           Error: Error when reading
           '../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/internals.dart':    
Error reading
           '../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/internals.dart'     
(The system
           cannot find the file specified.
           )
           export 'package:firebase_core/src/internals.dart' hide guardWebExceptions;
           ^

../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_messaging_web-2.4.4/lib/src/internals.dart:6:8:     
           Error: Error when reading
           '../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/internals.dart':    
Error reading
           '../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase_core-1.24.0/lib/src/internals.dart'     
(The system
           cannot find the file specified.
           )
           import 'package:firebase_core/src/internals.dart' as internals;
                  ^ …
Run Code Online (Sandbox Code Playgroud)

dart firebase flutter google-cloud-firestore flutter-web

6
推荐指数
1
解决办法
1854
查看次数