You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Yup, it looks like there's a dependency on package:record, which was the package that triggered this issue, and the stack trace is identical. This has been fixed in main and cherry-picked to stable, so marking as a duplicate.
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
Output
Dependencies
The text was updated successfully, but these errors were encountered: