Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to invoke as js transform plugin. RuntimeError: unreachable #107

Open
1 task done
hect1c opened this issue May 13, 2024 · 2 comments
Open
1 task done

failed to invoke as js transform plugin. RuntimeError: unreachable #107

hect1c opened this issue May 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@hect1c
Copy link

hect1c commented May 13, 2024

Verify Next.js canary release

  • I verified that the issue exists in the latest Next.js canary release

Describe the bug

Installed latest next and next-superson-plugin. But when I try and start the dev server get the following error

⨯ ./src/middleware.ts
Error: failed to process failed to invoke plugin: failed to invoke plugin on 'Some("/path/src/middleware.ts")'

Caused by:
    0: failed to invoke `/path/node_modules/next-superjson-plugin/dist/next_superjson.wasm` as js transform plugin at /path/node_modules/next-superjson-plugin/dist/next_superjson.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.
    2: RuntimeError: unreachable

I'm not sure why this is happening on my middleware.ts file

Expected behavior

Expect the application to start without any issues

Reproduction link

No response

Version

0.6.3

Config

No response

Additional context

No response

@hect1c hect1c added the bug Something isn't working label May 13, 2024
@johannespn
Copy link

johannespn commented Jul 19, 2024

Getting the same, it's blocking my next.js version update. Is there any news on this?
With "next": "14.1.4" and "next-superjson-plugin": "0.6.1"` it works fine. once I update next or the next-superjson-plugin version, I get the same error as above

@orionmiz
Copy link
Collaborator

orionmiz commented Jul 26, 2024

That would be fixed just with the updates for swc_core dependency.
I'll be on that work soon but it may take some time.
If it's in hurry, you may consider the direct contribution like:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants