Skip to content

Target dart2js failed: Exception: .dart_tool/flutter_build/0e658b7c03aeae78aa77acd27f850684/app.dill: #46706

@stvoidmain

Description

@stvoidmain

Target dart2js failed: Exception: .dart_tool/flutter_build/0e658b7c03aeae78aa77acd27f850684/app.dill:
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 compiler crashed: Expected a library reference to be valid but was null.
#0 BinaryBuilder.readNonNullLibraryReference (package:kernel/binary/ast_from_binary.dart:999:5)
#1 BinaryBuilder.readLibraryDependency (package:kernel/binary/ast_from_binary.dart:1189:31)
#2 BinaryBuilder._readLibraryDependencies (package:kernel/binary/ast_from_binary.dart:1181:33)
#3 BinaryBuilder.readLibrary (package:kernel/binary/ast_from_binary.dart:1150:5)
#4 BinaryBuilder._readOneComponent (package:kernel/binary/ast_from_binary.dart:841:9)
#5 BinaryBuilder.readComponent. (package:kernel/binary/ast_from_binary.dart:633:34)
#6 Timeline.timeSync (dart:developer/timeline.dart:163:22)
#7 BinaryBuilder.readComponent (package:kernel/binary/ast_from_binary.dart:603:21)
#8 KernelLoaderTask.load..read (package:compiler/src/kernel/loader.dart:97:41)

#9 KernelLoaderTask.load. (package:compiler/src/kernel/loader.dart:100:9)

#10 Compiler.runInternal (package:compiler/src/compiler.dart:285:29)

Compiling lib\main.dart for the Web... 11,6s
Exception: Failed to compile application for the Web.

  • Dart SDK version: 2.13.4 (stable) (Wed Jun 23 13:08:41 2021 +0200) on "windows_x64"
  • Windows 10 x64
  • It fails on Windows and Linux (Ubuntu xenial) too.

Metadata

Metadata

Assignees

Labels

area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.legacy-area-front-endLegacy: Use area-dart-model instead.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions