blitz-js / next-superjson-plugin

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

thread '<unnamed>' panicked at 'failed to invoke plugin #33

Closed merthanmerter closed 1 year ago

merthanmerter commented 1 year ago

Hello, I have migrated to Ubuntu OS and I'm getting bellow error.

thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("/media/.../node_modules/next/dist/client/dev/amp-dev.js")'

Caused by:
    0: failed to invoke `/media/.../node_modules/next-superjson-plugin/next_superjson.wasm` as js transform plugin at /media/.../node_modules/next-superjson-plugin/next_superjson.wasm
    1: RuntimeError: out of bounds memory access
           at <unnamed> (<module>[329]:0x62a25)
           at <unnamed> (<module>[355]:0x6bd6b)
           at <unnamed> (<module>[357]:0x6d15e)
           at <unnamed> (<module>[41]:0xc3fb)
           at <unnamed> (<module>[105]:0x1cf8d)
           at <unnamed> (<module>[158]:0x343b0)
           at <unnamed> (<module>[183]:0x3c8ce)
           at <unnamed> (<module>[124]:0x2332b)
           at <unnamed> (<module>[751]:0xd2250)
           at <unnamed> (<module>[750]:0xd1fe1)
           at <unnamed> (<module>[589]:0xaf798)
    2: heap_get_oob', /usr/local/cargo/registry/src/github.com-.../src/plugin.rs:216:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error Command failed with exit code 1.
Skn0tt commented 1 year ago

This looks related to the SWC plugin, transferred the issue. @orionmiz do you have an idea what might be causing this?

orionmiz commented 1 year ago

@merthanmerter What is the version of Next.js & plugin?

Latest plugin only works for Next.js at least v12.3.1

merthanmerter commented 1 year ago

@merthanmerter What is the version of Next.js & plugin?

Latest plugin only works for Next.js at least v12.3.1

Yes, I considered that and tried to upgrade to @latest but it installed 12.3.0. Now I manually add @12.3.1 and its working. Thanks.