Skip to content

DartDevcFrontendServerClient throws null safety exception #1546

@Ehesp

Description

@Ehesp

When running the DartDevcFrontendServerClient compiler, an exception will be thrown:

Unhandled exception:
Bad state: Unsupported Null Safety mode NonNullableByDefaultCompiledMode.Invalid, in null.
#0      ProgramCompiler.emitModule (package:dev_compiler/src/kernel/compiler.dart:472:9)
#1      JavaScriptBundler.compile (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/src/javascript_bundle.dart:152:33)
#2      FrontendCompiler.writeJavascriptBundle (file:///opt/s/w/ir/cache/builder/sdk/pkg/frontend_server/lib/frontend_server.dart:693:47)

This can be reproduced by running the example within the frontend_server_client package:

cd frontend_server_client
dart example/web_client.dart

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions