Description
https://github.com/canyon-project/canyon/blob/94ebe1ed20b80d0b9128e8f90da66db445be71b1/packages/canyon-platform/vite.config.ts#L12
This is my SWC plugin configuration. When I use the latest swc-core(1.7.0), there will be an error message.
transforming (1) index.htmlthread '' panicked at /Users/ojkwon/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.44/src/impls/core/mod.rs:266:67:
called Result::unwrap()
on an Err
value: LayoutError
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
thread '' panicked at /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.282.0/src/plugin.rs:169:14:
failed to invoke plugin: failed to invoke plugin on 'Some("/Users/zhangtao/github.com/canyon-project/canyon/packages/canyon-platform/src/main.tsx")'
Caused by:
0: failed to invoke /Users/zhangtao/github.com/canyon-project/canyon/node_modules/.pnpm/swc-plugin-coverage-instrument@0.0.24/node_modules/swc-plugin-coverage-instrument/target/wasm32-wasi/release/swc_plugin_coverage.wasm
as js transform plugin at /Users/zhangtao/github.com/canyon-project/canyon/node_modules/.pnpm/swc-plugin-coverage-instrument@0.0.24/node_modules/swc-plugin-coverage-instrument/target/wasm32-wasi/release/swc_plugin_coverage.wasm
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.
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.
2: RuntimeError: unreachable
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace