Closed cellulosa closed 1 year ago
It seems to be an error from breaking changes of SWC (Found in here)
Fixing this error by updating the plugin was successful. However, when I tested the plugin in Next.js 12.3, another error message has come out
After doing some research, I found that the new error is also related to SWC. I will try to contact the maintainer of SWC as soon as possible.
Please wait for bringing a solution.
Thanks for reporting an issue!
Any update here? Eager to give this a try!
Plugin v0.4.2 is released!
Tested working on Next.js v12.3.1-canary.2 (It should be bigger than v12.3.0)
Try it!
Works great for me. Thank you @orionmiz!
Hi @orionmiz,
I still have problems with Macbook Air M2.
This is the only error message that I had when running next dev
Caused by:
0: failed to invoke `/Users/rayandrew/Projects/web-monorepo/node_modules/.pnpm/next-superjson-plugin@0.4.2_vc747sktxxakxjmvmp76wxv6ju/node_modules/next-superjson-plugin/next_superjson.wasm` as js transform plugin at /Users/rayandrew/Projects/web-monorepo/node_modules/.pnpm/next-superjson-plugin@0.4.2_vc747sktxxakxjmvmp76wxv6ju/node_modules/next-superjson-plugin/next_superjson.wasm
1: RuntimeError: out of bounds memory access
2: heap_get_oob', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.224.0/src/plugin.rs:216:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@rayandrew
Found using old version of swc in the error logs:
2: heap_get_oob', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/swc-0.224.0/src/plugin.rs:216:14
Seems like you used the version of next.js lower than v12.3.1-canary.2
Don't forget v0.4.2 ensures working only over v12.3.0
(It means canary release currently)
You can update to the canary with this command:
pnpm add next@canary
Describe the bug
When enabling the plugin the terminal returns:
Expected behavior
Not throw error
Reproduction link
No response
Version
0.4.1
Config
Additional context
Next 12.3.0