You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded from 0.7.6 to beta.3 along with other library updates and this is the output:
client-1 | > [email protected] dev
client-1 | > rsbuild dev
client-1 |
client-1 | Rsbuild v1.0.1-beta.3
client-1 |
client-1 | > Local: http://localhost:3000/
client-1 | > Network: http://172.21.0.2:3000/
client-1 |
client-1 | start Compiling...
client-1 | thread 'Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
client-1 | Message: called expect on Module(Module { span: 1..78#0, body: [Stmt(Empty(EmptyStmt { span: 78..4294967220#0 }))], shebang: None })
client-1 | Location: swc_ecma_ast-0.115.1/src/module.rs:8
client-1 |
client-1 | Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
client-1 | Run with RUST_BACKTRACE=full to include source snippets.
client-1 | <unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.44/src/impls/core/mod.rs:266:67:
client-1 | called `Result::unwrap()` on an `Err` value: LayoutError
client-1 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
client-1 | <empty backtrace>
client-1 | Aborted
client-1 |
client-1 | > [email protected] dev
client-1 | > rsbuild dev
client-1 |
client-1 | Rsbuild v1.0.1-beta.3
client-1 |
client-1 | > Local: http://localhost:3000/
client-1 | > Network: http://172.21.0.2:3000/
client-1 |
client-1 | start Compiling...
client-1 | thread '<unnamed>' panicked at /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.44/src/impls/core/mod.rs:266:67:
client-1 | called `Result::unwrap()` on an `Err` value: LayoutError
client-1 | note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
client-1 | Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
client-1 | Message: called expect on Module(Module { span: 1..78#0, body: [Stmt(Empty(EmptyStmt { span: 78..4294967220#0 }))], shebang: None })
client-1 | Location: swc_ecma_ast-0.115.1/src/module.rs:8
client-1 |
client-1 | Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
client-1 | Run with RUST_BACKTRACE=full to include source snippets.
client-1 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
client-1 | <empty backtrace>
client-1 | Panic occurred at runtime. Please file an issue on GitHub with the backtrace below: https://github.com/web-infra-dev/rspack/issues
client-1 | Message: failed to invoke plugin: failed to invoke plugin on 'Some("/var/projects/wccb_pwa/client/src/index.tsx")'
client-1 |
client-1 | Caused by:
client-1 | 0: failed to invoke `@swc/plugin-styled-jsx` as js transform plugin at @swc/plugin-styled-jsx
client-1 | 1: failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See https://swc.rs/docs/plugin/selecting-swc-core for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
client-1 |
client-1 | Note that if you want to use the os features like filesystem, you need to use `wasi`. Wasm itself does not have concept of filesystem.
client-1 | 2: RuntimeError: unreachable
client-1 | at <unnamed> (<module>[15324]:0x6a0abc)
client-1 | at <unnamed> (<module>[15315]:0x6a0711)
client-1 | at <unnamed> (<module>[15314]:0x6a0437)
client-1 | at <unnamed> (<module>[15301]:0x69f7db)
client-1 | at <unnamed> (<module>[15300]:0x69f73e)
client-1 | at <unnamed> (<module>[15309]:0x69ff4b)
client-1 | at <unnamed> (<module>[15520]:0x6b2bca)
client-1 | at <unnamed> (<module>[15573]:0x6ba8b2)
client-1 | at <unnamed> (<module>[35]:0x9179)
client-1 | at <unnamed> (<module>[145]:0x27baa)
client-1 | at <unnamed> (<module>[35]:0x90cc)
client-1 | at <unnamed> (<module>[33]:0x7ecc)
client-1 | at <unnamed> (<module>[316]:0x43d2a)
client-1 | at <unnamed> (<module>[15700]:0x6c56f3)
client-1 | Location: swc-0.279.1/src/plugin.rs:169
client-1 |
client-1 | Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
client-1 | Run with RUST_BACKTRACE=full to include source snippets.
client-1 | ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
client-1 | <empty backtrace>
client-1 | Aborted
(This runs in a docker container node:22.2.0-bookworm)
failed to invoke `@swc/plugin-styled-jsx` as js transform plugin at @swc/plugin-styled-jsx
failed to run Wasm plugin transform. Please ensure the version of `swc_core` used by the plugin is compatible with the host runtime. See https://swc.rs/docs/plugin/selecting-swc-core for compatibility information. If you are an author of the plugin, please update `swc_core` to the compatible version.
Can you please add appropriate peer dependencies to your packages, so this doesn't happen? I remember this isn't the first time. It's a poor experience if npm update never works out of the box reliably.
@swc/plugin-styled-jsx is not a peer dependency of Rsbuild, Rsbuild does not depend on this plugin. And this issue is caused by SWC, not Rspack or Rsbuild.
I totally agree that this is a critical issue, you can create an issue in the SWC repository to provide feedback.
Version
Details
I upgraded from 0.7.6 to beta.3 along with other library updates and this is the output:
(This runs in a docker container
node:22.2.0-bookworm
)Reproduce link
https://github.com/uncaught/rsbuild-panic-1.git
Reproduce Steps
The text was updated successfully, but these errors were encountered: