Skip to content

The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null. #49409

Closed
@Xyzcancer

Description

@Xyzcancer

Hi, I've tried to build Chrome Extension with those commands, but both have failed with the same stacktrace

flutter build web --web-renderer html --csp
flutter build web

  • macOS 12.4 MacBookPro M1 Pro

  • Dart SDK version: 2.17.3 (stable) (Wed Jun 1 11:06:41 2022 +0200) on "macos_arm64"

  • Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
    org-dartlang-sdk:///lib/_internal/js_runtime/lib/core_patch.dart@5829+1:
    Internal Error: The compiler crashed when compiling this element.
    The compiler is broken.

The compiler crashed: NoSuchMethodError: The getter 'boxedVariables' was called on null.
Receiver: null
Tried calling: boxedVariables
#0 JsKernelToElementMap.makeRecordContainer (package:compiler/src/js_model/element_map_impl.dart:1770:14)
#1 ClosureDataBuilder.createClosureEntities.processModel (package:compiler/src/js_model/closure.dart:329:23)
#2 ClosureDataBuilder.createClosureEntities.. (package:compiler/src/js_model/closure.dart:389:9)
#3 DiagnosticReporter.withCurrentElement (package:compiler/src/diagnostics/diagnostic_listener.dart:143:15)
#4 ClosureDataBuilder.createClosureEntities. (package:compiler/src/js_model/closure.dart:388:17)
#5 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:614:13)
#6 ClosureDataBuilder.createClosureEntities (package:compiler/src/js_model/closure.dart:387:19)
#7 JsClosedWorldBuilder.convertClosedWorld (package:compiler/src/js_model/js_world_builder.dart:161:41)
#8 JsBackendStrategy.createJClosedWorld (package:compiler/src/js_model/js_strategy.dart:174:52)
#9 Compiler.closeResolution (package:compiler/src/compiler.dart:684:25)
#10 Compiler.computeClosedWorld (package:compiler/src/compiler.dart:377:9)
#11 Compiler.produceClosedWorld (package:compiler/src/compiler.dart:537:11)
#12 Compiler.runSequentialPhases (package:compiler/src/compiler.dart:634:15)

#13 Compiler.runInternal. (package:compiler/src/compiler.dart:305:7)

#14 Compiler.runInternal (package:compiler/src/compiler.dart:304:5)

#15 main (package:compiler/src/dart2js.dart:1407:3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.closed-duplicateClosed in favor of an existing reportneeds-infoWe need additional information from the issue author (auto-closed after 14 days if no response)type-bugIncorrect behavior (everything from a crash to more subtle misbehavior)web-dart2js

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions