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
When I execute next build I get the following error:
$ RUST_BACKTRACE=1 npm run build
> swc-coverage-instrument-error@0.1.0 build
> next build
warn - You have enabled experimental feature (swcPlugins) in next.config.js.
warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
info - SWC minify release candidate enabled. https://nextjs.link/swcmin
info - Linting and checking validity of types
info - Creating an optimized production build ..thread 'thread '<unnamed>' panicked at 'assertion failed: !bytes.is_null()', <unnamed>' panicked at 'assertion failed: !bytes.is_null()', C:\Users\kwono\.cargo\registry\src\github.com-1ecc6299db9ec823\rkyv-0.7.39\src\impls\core\mod.rs:thread '<unnamed>' panicked at 'assertion failed: !bytes.is_null()', C:\Users\kwono\.cargo\registry\src\github.com-1ecc6299db9ec823\rkyv-0.7.39\src\impls\core\mod.rs:364:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
364:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
C:\Users\kwono\.cargo\registry\src\github.com-1ecc6299db9ec823\rkyv-0.7.39\src\impls\core\mod.rs:364:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("<absPath>/swc-coverage-instrument-error/node_modules/next/dist/pages/_error.js")'
Caused by:
0: failed to invoke `<absPath>/swc-coverage-instrument-error/node_modules/swc-plugin-coverage-instrument/target/wasm32-wasi/release/swc_plugin_coverage.wasm` as js transform plugin at <absPath>/swc-coverage-instrument-error/node_modules/swc-plugin-coverage-instrument/target/wasm32-wasi/release/swc_plugin_coverage.wasm
1: RuntimeError: unreachable
2: unreachable
Stack backtrace:
0: _wasmer_vm_raise_trap
1: _rust_eh_personality
2: _napi_register_module_v1
3: _napi_register_module_v1
4: _napi_register_module_v1
5: _napi_register_module_v1
6: <unknown>
7: <unknown>
8: _napi_register_module_v1
9: <unknown>
10: _napi_register_module_v1
11: <unknown>
12: <unknown>
13: _napi_register_module_v1
14: <unknown>
15: _worker
16: __pthread_deallocatethread '', <unnamed>/Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.212.1/src/plugin.rs' panicked at ':failed to invoke plugin: failed to invoke plugin on 'Some("<absPath>/swc-coverage-instrument-error/pages/index.js")'
...
I am using swc-plugin-coverage-instrument (0.0.8) to instrumentalize my Next.js app (12.2.5). I am using the following
next.config.js
configuration:When I execute
next build
I get the following error:I created a minimal example here: https://github.com/stschroeder/swc-coverage-instrument-error
You can use the following steps to reproduce the issue:
Please let me know if you need additional information. Thanks a lot!
The text was updated successfully, but these errors were encountered: