blitz-js / next-superjson-plugin

SuperJSON Plugin for Next.js Pages and Components
192 stars 13 forks source link

Build fails w/ swc transform "RuntimeError: unreachable" #99

Closed aplr closed 5 months ago

aplr commented 5 months ago

Verify Next.js canary release

Describe the bug

  1. Install next-superjson-plugin
  2. Build the application
  3. Watch the build fail

Initially reported at nextjs, see https://github.com/vercel/next.js/issues/61432, where it was pointed out to be an issue with the superjson plugin.

Expected behavior

build does not fail

Reproduction link

https://github.com/aplr/next_swc_plugin_issue

Version

14.1.1-canary.27

Config

No response

Additional context

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.0.0: Fri Sep 15 14:41:43 PDT 2023; root:xnu-10002.1.13~1/RELEASE_ARM64_T6000
Binaries:
  Node: 21.5.0
  npm: 10.2.4
  Yarn: 1.22.19
  pnpm: 8.14.1
Relevant Packages:
  next: 14.1.1-canary.25 // Latest available version is detected (14.1.1-canary.25).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A
Error log thread 'thread 'thread 'thread '' panicked at '' panicked at '' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutErrorcalled `Result::unwrap()` on an `Err` value: LayoutErrorcalled `Result::unwrap()` on an `Err` value: LayoutError', ', ' panicked at '', called `Result::unwrap()` on an `Err` value: LayoutError/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:::', 266266/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:266:::6767266 :6767note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/server/future/route-modules/app-page/module.compiled.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: stack backtrace: thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/pages/_document.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/pages/_app.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: thread '' panicked at stack backtrace: /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/pages/_error.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. thread '' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:thread 'thread '266:' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError67', ' panicked at ' /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rscalled `Result::unwrap()` on an `Err` value: LayoutErrornote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace :thread '', 266/home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs::' panicked at '266called `Result::unwrap()` on an `Err` value: LayoutError:67thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: ', failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/client/components/not-found-error.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: 67 stack backtrace: /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace :266note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. :67 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/client/components/error-boundary.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/server/future/route-kind.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: thread 'stack backtrace: ' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/server/app-render/entry-base.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. thread 'thread 'thread '' panicked at '' panicked at '' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutErrorcalled `Result::unwrap()` on an `Err` value: LayoutErrorcalled `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs::266266:67:', note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace 67 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs266thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162::14162: :failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/client.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: :stack backtrace: 14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/tools.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: 67note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. stack backtrace: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/server/future/route-modules/app-page/vendored/rsc/react-jsx-runtime.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. thread '' panicked at 'called `Result::unwrap()` on an `Err` value: LayoutError', /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rkyv-0.7.42/src/impls/core/mod.rs:266:67 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread '' panicked at /Users/geist/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc-0.272.4/src/plugin.rs:162:14: failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/app/now.tsx")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: stack backtrace: note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. Failed to compile. ./node_modules/next/dist/pages/_app.js Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/pages/_app.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: 3: ./node_modules/next/dist/pages/_document.js Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/pages/_document.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: 3: ./node_modules/next/dist/pages/_error.js Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/pages/_error.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: 3: Import trace for requested module: ./node_modules/next/dist/pages/_error.js ./app/now.tsx Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/app/now.tsx")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: 3: Import trace for requested module: ./app/now.tsx ./app/page.tsx ./node_modules/next/dist/client/components/error-boundary.js Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next/dist/client/components/error-boundary.js")' Caused by: 0: failed to invoke `/Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /Users/andreas/Developer/playground/next_swc_plugin_issue/node_modules/next-superjson-plugin/dist/next_superjson.wasm 1: RuntimeError: unreachable Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: _BrotliDecoderVersion 3: _BrotliDecoderVersion 4: _BrotliDecoderVersion 5: _BrotliDecoderVersion 6: _BrotliDecoderVersion 7: 8: _BrotliDecoderVersion 9: _BrotliDecoderVersion 10: _BrotliDecoderVersion 11: _BrotliDecoderVersion 12: 13: 14: 15: 16: 17: 18: Stack backtrace: 0: _napi_register_module_v1 1: _napi_register_module_v1 2: 3:
orionmiz commented 5 months ago

Please update the plugin to the latest version (v0.6.2)

aplr commented 5 months ago

works, thanks!