Closed
Description
I'm trying to build my app for web. I noticed that my CI was failing and can't figure it out. I had a look at the diff from when it started failing and can't see anything obvious.
I've noticed that the web plugin is held back a version. I've tried to see if I can update flutter & dart to use a newer version but it isn't grokking.
Doctor
➜ flutter doctor -v
[✓] Flutter (Channel stable, 3.13.5, on macOS 13.5.1 22G90 darwin-arm64, locale
en-NZ)
• Flutter version 3.13.5 on channel stable at /Users/edwardtaylor/opt/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 12fccda598 (6 days ago), 2023-09-19 13:56:11 -0700
• Engine revision bd986c5ed2
• Dart version 3.1.2
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
• Android SDK at /Users/edwardtaylor/Library/Android/sdk
• Platform android-33, build-tools 33.0.2
• Java binary at: /Applications/Android
Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14B47b
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.15+0-b2043.56-8887301)
[✓] IntelliJ IDEA Community Edition (version 2022.3.3)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.82.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.72.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.5.1 22G90 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 116.0.5845.110
[✓] Network resources
• All expected network resources are available.
• No issues found!
Output
➜ flutter build web
Target dart2js failed: ProcessException: Process exited abnormally:
../../.pub-cache/hosted/pub.dev/go_router-11.0.0/lib/src/information_provider.dart
:131:34:
Warning: Operand of null-aware operation '!' has type 'String' which excludes
null.
location: routeInformation.location!,
^
../../.pub-cache/hosted/pub.dev/go_router-11.0.0/lib/src/parser.dart:87:50:
Warning: Operand of null-aware operation '!' has type 'String' which excludes
null.
configuration.findMatch(routeInformation.location!, extra: state.extra);
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/x509_base.dart:176:59:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
(sequence.elements[2] as ASN1OctetString).contentBytes()!),
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/x509_base.dart:195:62:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
algorithm, (sequence.elements[1] as ASN1OctetString).contentBytes()!);
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/certificate.dart:137:19:
Warning: Operand of null-aware operation '!' has type 'BigInt' which excludes
null.
- 'BigInt' is from 'dart:core'.
version = e.valueAsBigInteger!.toInt() + 1;
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/certificate.dart:154:32:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
ex = (ASN1Parser(o.contentBytes()!).nextObject() as ASN1Sequence)
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/certificate.dart:164:52:
Warning: Operand of null-aware operation '!' has type 'BigInt' which excludes
null.
- 'BigInt' is from 'dart:core'.
serialNumber: (elements[0] as ASN1Integer).valueAsBigInteger!.toInt(),
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/extension.dart:47:54:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
ASN1Parser(sequence.elements[octetIndex].contentBytes()!)
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/extension.dart:355:16:
Warning: Operand of null-aware operation '!' has type 'bool' which excludes null.
cA = o.booleanValue!;
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/util.dart:39:50:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
var privateKey = toBigInt(sequence.elements[1].contentBytes()!);
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/util.dart:41:32:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
var l = sequence.elements[1].contentBytes()!.length;
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/util.dart:55:45:
Warning: Operand of null-aware operation '!' has type 'Uint8List' which excludes
null.
- 'Uint8List' is from 'dart:typed_data'.
var e = ASN1Parser(sequence.elements[i].contentBytes()!).nextObject()
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/util.dart:101:55:
Warning: Operand of null-aware operation '!' has type 'BigInt' which excludes
null.
- 'BigInt' is from 'dart:core'.
var modulus = (sequence.elements[0] as ASN1Integer).valueAsBigInteger!;
^
../../.pub-cache/hosted/pub.dev/x509-0.2.3/lib/src/util.dart:102:56:
Warning: Operand of null-aware operation '!' has type 'BigInt' which excludes
null.
- 'BigInt' is from 'dart:core'.
var exponent = (sequence.elements[1] as ASN1Integer).valueAsBigInteger!;
^
file:///Users/edwardtaylor/dev/peer_support_mlmv/.dart_tool/flutter_build/d62c3b98
e8929a9c8d38443c2e4f866a/main.dart:
Internal Error: The compiler crashed when compiling this element.
The compiler is broken.
When compiling the above element, the compiler crashed. It is not
possible to tell if this is caused by a problem in your program or
not. Regardless, the compiler should not crash.
The Dart team would greatly appreciate if you would take a moment to
report this problem at http://dartbug.com/new.
Please include the following information:
* the name and version of your operating system,
* the Dart SDK build number (3.1.2), and
* the entire message you see here (including the full stack trace
below as well as the source location above).
The compiler crashed: Invalid argument(s): Type parameter TypeParameter(T) is not
indexed
#0 TypeParameterIndexer.[] (package:kernel/binary/ast_to_binary.dart:3371:8)
#1 BinaryPrinter.visitTypeParameterType
(package:kernel/binary/ast_to_binary.dart:2528:38)
#2 TypeParameterType.accept (package:kernel/ast.dart:12528:42)
#3 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:439:10)
#4 BinaryPrinter.writeNodeList
(package:kernel/binary/ast_to_binary.dart:349:7)
#5 BinaryPrinter.visitInterfaceType
(package:kernel/binary/ast_to_binary.dart:2435:7)
#6 InterfaceType.accept (package:kernel/ast.dart:11385:42)
#7 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:439:10)
#8 BinaryPrinter.visitAsExpression
(package:kernel/binary/ast_to_binary.dart:1960:5)
#9 AsExpression.accept (package:kernel/ast.dart:7636:44)
#10 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:439:10)
#11 BinaryPrinter.writeOptionalNode
(package:kernel/binary/ast_to_binary.dart:531:7)
#12 BinaryPrinter.visitReturnStatement
(package:kernel/binary/ast_to_binary.dart:2315:5)
#13 ReturnStatement.accept (package:kernel/ast.dart:10127:43)
#14 BinaryPrinter.writeNode (package:kernel/binary/ast_to_binary.dart:439:10)
#15 BinaryPrinter.writeOptionalNode
(package:kernel/binary/ast_to_binary.dart:531:7)
#16 BinaryPrinter.visitFunctionNode
(package:kernel/binary/ast_to_binary.dart:1529:5)
#17 FunctionNode.accept (package:kernel/ast.dart:3908:38)
#18 BinaryPrinter.writeFunctionNode
(package:kernel/binary/ast_to_binary.dart:446:10)
#19 BinaryPrinter.visitProcedure
(package:kernel/binary/ast_to_binary.dart:1357:5)
#20 Procedure.accept (package:kernel/ast.dart:3311:40)
#21 BinaryPrinter.writeProcedureNode
(package:kernel/binary/ast_to_binary.dart:467:10)
#22 BinaryPrinter.writeProcedureNodeList
(package:kernel/binary/ast_to_binary.dart:358:7)
#23 BinaryPrinter.visitClass (package:kernel/binary/ast_to_binary.dart:1260:5)
#24 Class.accept (package:kernel/ast.dart:1422:38)
#25 BinaryPrinter.writeClassNode
(package:kernel/binary/ast_to_binary.dart:481:10)
#26 BinaryPrinter.writeClassNodeList
(package:kernel/binary/ast_to_binary.dart:376:7)
#27 BinaryPrinter.visitLibrary
(package:kernel/binary/ast_to_binary.dart:1096:5)
#28 Library.accept (package:kernel/ast.dart:577:38)
#29 BinaryPrinter.writeLibraryNode
(package:kernel/binary/ast_to_binary.dart:460:10)
#30 BinaryPrinter.writeLibraries
(package:kernel/binary/ast_to_binary.dart:766:9)
#31 BinaryPrinter.writeComponentFile.<anonymous closure>
(package:kernel/binary/ast_to_binary.dart:605:7)
#32 Timeline.timeSync (dart:developer/timeline.dart:171:22)
#33 BinaryPrinter.writeComponentFile
(package:kernel/binary/ast_to_binary.dart:586:14)
#34 SerializationTask.serializeComponent.<anonymous closure>
(package:compiler/src/serialization/task.dart:77:15)
#35 CompilerTask.measureSubtask
(package:compiler/src/common/tasks.dart:181:35)
#36 SerializationTask.serializeComponent
(package:compiler/src/serialization/task.dart:67:5)
#37 Compiler.produceKernel (package:compiler/src/compiler.dart:422:29)
<asynchronous suspension>
#38 Compiler.runSequentialPhases (package:compiler/src/compiler.dart:711:20)
<asynchronous suspension>
#39 Compiler.runInternal.<anonymous closure>
(package:compiler/src/compiler.dart:311:7)
<asynchronous suspension>
#40 Compiler.runInternal (package:compiler/src/compiler.dart:310:5)
<asynchronous suspension>
#41 Compiler.run.<anonymous closure>
(package:compiler/src/compiler.dart:231:11)
<asynchronous suspension>
#42 main (package:compiler/src/dart2js.dart:1241:3)
<asynchronous suspension>
Command: /Users/edwardtaylor/opt/flutter/bin/cache/dart-sdk/bin/dart
--disable-dart-dev
/Users/edwardtaylor/opt/flutter/bin/cache/dart-sdk/bin/snapshots/dart2js.dart.sn
apshot
--platform-binaries=/Users/edwardtaylor/opt/flutter/bin/cache/flutter_web_sdk/ke
rnel --invoker=flutter_tool -Ddart.vm.product=true
-DFLUTTER_WEB_AUTO_DETECT=true
-DFLUTTER_WEB_CANVASKIT_URL=https://www.gstatic.com/flutter-canvaskit/bd986c5ed2
0a62dc34b7718c50abc782beae4c33/ --native-null-assertions --no-source-maps -o
/Users/edwardtaylor/dev/peer_support_mlmv/.dart_tool/flutter_build/d62c3b98e8929
a9c8d38443c2e4f866a/app.dill --packages=.dart_tool/package_config.json
--cfe-only
/Users/edwardtaylor/dev/peer_support_mlmv/.dart_tool/flutter_build/d62c3b98e8929
a9c8d38443c2e4f866a/main.dart
#0 RunResult.throwException (package:flutter_tools/src/base/process.dart:125:5)
#1 _DefaultProcessUtils.run (package:flutter_tools/src/base/process.dart:278:19)
<asynchronous suspension>
#2 Dart2JSTarget.build (package:flutter_tools/src/build_system/targets/web.dart:189:5)
<asynchronous suspension>
#3 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:853:9)
<asynchronous suspension>
#4 Future.wait.<anonymous closure> (dart:async/future.dart:525:21)
<asynchronous suspension>
#5 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
<asynchronous suspension>
#6 Future.wait.<anonymous closure> (dart:async/future.dart:525:21)
<asynchronous suspension>
#7 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:791:32)
<asynchronous suspension>
#8 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:620:16)
<asynchronous suspension>
#9 WebBuilder.buildWeb (package:flutter_tools/src/web/compile.dart:89:34)
<asynchronous suspension>
#10 BuildWebCommand.runCommand (package:flutter_tools/src/commands/build_web.dart:198:5)
<asynchronous suspension>
#11 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1297:27)
<asynchronous suspension>
#12 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#13 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#14 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:339:9)
<asynchronous suspension>
#15 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#16 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:285:5)
<asynchronous suspension>
#17 run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:115:9)
<asynchronous suspension>
#18 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
<asynchronous suspension>
#19 main (package:flutter_tools/executable.dart:90:3)
<asynchronous suspension>
Compiling lib/main.dart for the Web... 11.7s
Exception: Failed to compile application for the Web.
Dependencies
➜ flutter pub upgrade
Resolving dependencies... (10.2s)
_fe_analyzer_shared 61.0.0 (64.0.0 available)
after_layout 1.2.0
analyzer 5.13.0 (6.2.0 available)
analyzer_plugin 0.11.2 (0.11.3 available)
animations 2.0.8
archive 3.4.2
args 2.4.2
asn1lib 1.5.0
async 2.11.0
audio_session 0.1.16
audio_video_progress_bar 0.11.0 (2.0.0 available)
boolean_selector 2.1.1
build 2.4.1
build_config 1.1.1
build_daemon 4.0.0
build_resolvers 2.4.0
build_runner 2.4.6
build_runner_core 7.2.11
built_collection 5.1.1
built_value 8.6.3
built_value_generator 8.6.3
cached_network_image 3.3.0
cached_network_image_platform_interface 3.0.0
cached_network_image_web 1.1.0
characters 1.3.0
checked_yaml 2.0.3
chewie 1.7.1
ci 0.1.0
cli_util 0.4.0
clock 1.1.1
code_builder 4.7.0
collection 1.17.2 (1.18.0 available)
connectivity_plus 4.0.2
connectivity_plus_platform_interface 1.2.4
contextmenu 3.0.0
convert 3.1.1
cross_file 0.3.3+5
crypto 3.0.3
crypto_keys 0.3.0+1
csslib 1.0.0
cupertino_icons 1.0.6
custom_lint 0.5.3
custom_lint_builder 0.5.3
custom_lint_core 0.5.3
dart_style 2.3.2 (2.3.3 available)
dart_vlc 0.4.0
dart_vlc_ffi 0.2.0+1
dbus 0.7.8
desktop_drop 0.4.3
diacritic 0.1.4
dio 5.3.3
equatable 2.0.5
extended_wrap 0.1.5
ezanimation 0.6.0
fake_async 1.3.1
feedback 2.6.0
feedback_sentry 2.4.0
ferry 0.14.2+1
ferry_cache 0.7.1+2
ferry_exec 0.3.1
ferry_generator 0.8.1
ferry_hive_store 0.5.1
ferry_store 0.5.3
ffi 2.1.0
file 6.1.4 (7.0.0 available)
file_picker 5.5.0
file_selector 1.0.1
file_selector_android 0.5.0+3
file_selector_ios 0.5.1+6
file_selector_linux 0.9.2+1
file_selector_macos 0.9.3+3
file_selector_platform_interface 2.6.1
file_selector_web 0.9.2+1
file_selector_windows 0.9.3+1
fixnum 1.1.0
flutter 0.0.0 from sdk flutter
flutter_cache_manager 3.3.1
flutter_hooks 0.20.1
flutter_launcher_icons 0.13.1
flutter_lints 2.0.3
flutter_localizations 0.0.0 from sdk flutter
flutter_markdown 0.6.17+3
flutter_plugin_android_lifecycle 2.0.16
flutter_portal 1.1.4
flutter_riverpod 2.4.0
flutter_svg 2.0.7
flutter_test 0.0.0 from sdk flutter
flutter_web_auth 0.5.0
flutter_web_plugins 0.0.0 from sdk flutter
fpdart 1.1.0
freezed 2.4.1 (2.4.2 available)
freezed_annotation 2.4.1
frontend_server_client 3.2.0
glob 2.1.2
go_router 11.0.0
google_fonts 6.1.0
gql 1.0.0
gql_code_builder 0.7.2 (0.8.0 available)
gql_exec 1.0.0
gql_http_link 1.0.1
gql_link 1.0.0
gql_websocket_link 1.1.0
graphs 2.3.1
hive 2.2.3
hive_flutter 1.1.0
hooks_riverpod 2.4.0
hotreloader 3.0.6 (4.0.0 available)
html 0.15.4
http 1.1.0
http_multi_server 3.2.1
http_parser 4.0.2
image 4.1.2
image_gallery_saver 2.0.3
image_picker 1.0.4
image_picker_android 0.8.8+1
image_picker_for_web 3.0.1
image_picker_ios 0.8.8+2
image_picker_linux 0.2.1+1
image_picker_macos 0.2.1+1
image_picker_platform_interface 2.9.1
image_picker_windows 0.2.1+1
intl 0.18.1
io 1.0.4
jiffy 6.2.1
jose 0.3.4
js 0.6.7
json_annotation 4.8.1
just_audio 0.9.35
just_audio_platform_interface 4.2.1
just_audio_web 0.4.8
lints 2.1.1
logging 1.2.0
lottie 2.6.0
markdown 7.1.1
matcher 0.12.16
material_color_utilities 0.5.0 (0.8.0 available)
meta 1.9.1 (1.10.0 available)
mic_stream 0.6.5
mime 1.0.4
nested 1.0.0
nm 0.5.0
normalize 0.8.2+1
octo_image 2.0.0
package_config 2.1.0
package_info_plus 4.1.0
package_info_plus_platform_interface 2.0.1
path 1.8.3
path_parsing 1.0.1
path_provider 2.1.1
path_provider_android 2.2.0
path_provider_foundation 2.3.1
path_provider_linux 2.2.1
path_provider_platform_interface 2.1.1
path_provider_windows 2.2.1
pedantic 1.11.1
permission_handler 10.4.5 (11.0.0 available)
permission_handler_android 10.3.6 (11.0.4 available)
permission_handler_apple 9.1.4
permission_handler_platform_interface 3.11.5
permission_handler_windows 0.1.3
petitparser 5.4.0 (6.0.1 available)
photo_manager 2.7.1
photo_view 0.14.0
platform 3.1.2
plugin_platform_interface 2.1.6
pointycastle 3.7.3
pool 1.5.1
provider 6.0.5
pub_semver 2.1.4
pubspec_parse 1.2.3
quiver 3.2.1
rate_limiter 1.0.0
record 5.0.0-beta.3
record_android 1.0.0-beta.2
record_darwin 1.0.0-beta.2+2
record_linux 0.7.0
record_platform_interface 1.0.1
record_web 1.0.0-beta.2+3
record_windows 1.0.0-beta.2+1
riverpod 2.4.0
riverpod_analyzer_utils 0.3.3
riverpod_annotation 2.1.5
riverpod_generator 2.3.2
riverpod_lint 2.1.0
rxdart 0.27.7
selectable_autolink_text 2.6.0
sentry 7.10.1
sentry_flutter 7.10.1
share_plus 7.1.0
share_plus_platform_interface 3.3.0
shared_preferences 2.2.1
shared_preferences_android 2.2.1
shared_preferences_foundation 2.3.4
shared_preferences_linux 2.3.1
shared_preferences_platform_interface 2.3.1
shared_preferences_web 2.2.1
shared_preferences_windows 2.3.1
shelf 1.4.1
shelf_web_socket 1.0.4
shimmer 3.0.0
sky_engine 0.0.99 from sdk flutter
source_gen 1.4.0
source_span 1.10.0
sqflite 2.3.0
sqflite_common 2.5.0
stack_trace 1.11.0 (1.11.1 available)
state_notifier 1.0.0
stream_channel 2.1.1 (2.1.2 available)
stream_chat 6.9.0
stream_chat_flutter 6.10.0
stream_chat_flutter_core 6.9.0
stream_transform 2.1.0
string_scanner 1.2.0
synchronized 3.1.0
term_glyph 1.2.1
test_api 0.6.0 (0.6.1 available)
thumblr 0.0.4
thumblr_macos 0.4.0
thumblr_platform_interface 0.3.1+1
thumblr_windows 0.0.3+1
timing 1.0.1
typed_data 1.3.2
url_launcher 6.1.14
url_launcher_android 6.1.0
url_launcher_ios 6.1.5
url_launcher_linux 3.0.6
url_launcher_macos 3.0.7
url_launcher_platform_interface 2.1.5
url_launcher_web 2.0.20
url_launcher_windows 3.0.8
uuid 3.0.7 (4.1.0 available)
vector_graphics 1.1.7
vector_graphics_codec 1.1.7
vector_graphics_compiler 1.1.7
vector_math 2.1.4
video_player 2.7.2
video_player_android 2.4.10
video_player_avfoundation 2.4.10
video_player_macos 2.0.1
video_player_platform_interface 6.2.1
video_player_web 2.1.0
video_thumbnail 0.5.3
vm_service 11.10.0
wakelock_plus 1.1.1
wakelock_plus_platform_interface 1.1.0
watcher 1.1.0
web 0.1.4-beta (0.2.1-beta available)
web_socket_channel 2.4.0
win32 5.0.8
x509 0.2.3
xdg_directories 1.0.3
xml 6.3.0 (6.4.2 available)
yaml 3.1.2
No dependencies changed.
21 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.