# V8004 target_unsupported_external

URL: /docs/errors/V8004
Markdown: /docs/errors/V8004.md

> 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.

## Wrong program [#wrong-program]

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

## Fixed program [#fixed-program]

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