Skip to content

[Panic]: Rolldown panics on SASS compilation while npm run build #9414

Description

@zakandaiev

Panic message

❯ npm run build

> rolldown-sass-panic-example@0.0.0 build
> vite build

(node:49) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
(node:49) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
vite v8.0.13 building client environment for production...
transforming (2) src/main.js(node:49) ExperimentalWarning: WASI is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
Rolldown panicked. This is a bug in Rolldown, not your code.

thread 'tokio-rt-worker' (3) panicked at crates/rolldown_plugin/src/plugin_context/plugin_context.rs:159:5:
not implemented: Can't call `warn` on PluginContext::Napi
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Please report this issue at: https://github.com/rolldown/rolldown/issues/new?template=panic_report.yml
worker (tid = 45) sent an error! unreachable
[Error [RuntimeError]: unreachable]

Node.js v22.22.0

Reproduction

System Info

System:
  OS: Linux 5.0 undefined
  CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
  Memory: 0 Bytes / 0 Bytes
  Shell: 1.0 - /bin/jsh
Binaries:
  Node: 22.22.0 - /usr/local/bin/node
  Yarn: 1.22.19 - /usr/local/bin/yarn
  npm: 10.8.2 - /usr/local/bin/npm
  pnpm: 8.15.6 - /usr/local/bin/pnpm

Additional context

stackblitz reproduction link

Metadata

Metadata

Type

Fields

Priority

None yet

Effort

None yet

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions