Sakura Lang

V8004 target_unsupported_external

A user package declares an @external(js, …) function, and --target wasm has no JavaScript to call (design §17.81): the WASM backend runs std's host operations through the runtime's own imports only.

An error from the package phase. sakura explain V8004 prints this explanation offline.

A user package declares an @external(js, …) function, and --target wasm has no JavaScript to call (design §17.81): the WASM backend runs std's host operations through the runtime's own imports only. Build with --target js, or write the function in Sakura Lang. (The code is a placeholder: the plan named V8002, which §17.131 gave to reserved_package_name.)

Wrong program

No fixture in compiler/tests/ui reports this code yet.

Fixed program

No fixed program yet; the explanation above describes the repair.

Edit on GitHub

On this page