我尝试使用flutter build web(也尝试过flutter build web --no-sound-null-safety)在发布模式下构建 flutter web 应用程序。当我这样做时,我收到以下错误。
D:\\saves\\reset_password>flutter build web\n\nBuilding without sound null safety\nFor more information see https://dart.dev/null-safety/unsound-null-safety\n\nTarget dart2js failed: Exception: Warning: The \'dart2js\' entrypoint script is deprecated, please use \'dart compile js\' instead.\n.dart_tool/flutter_build/1916f9367c0e6ad6c929bd88cf5227e5/web_plugin_registrant.dart:14:38:\nError: Null safety features are disabled for this library.\nvoid registerPlugins([final Registrar? pluginRegistrar]) {\n ^\nError: Compilation failed.\n\n\nCompiling lib\\main.dart for the Web... 44.9s\nException: Failed to compile application for the Web.Run Code Online (Sandbox Code Playgroud)\r\n当我使用 直接在调试模式下运行它时,它工作正常flutter run。\n注意:我最近升级到 flutter …