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

Broken on default version of Vite #23

Open
jaens opened this issue Jan 31, 2024 · 3 comments
Open

Broken on default version of Vite #23

jaens opened this issue Jan 31, 2024 · 3 comments

Comments

@jaens
Copy link

jaens commented Jan 31, 2024

After @vitejs/plugin-react-swc changed their version to 3.6.0 (which, I assume, contains an swc upgrade), every compilation fails with:

0: failed to invoke `...../node_modules/@swc-jotai/debug-label/swc_jotai_debug_label.wasm` 
    as js transform plugin at ..../node_modules/@swc-jotai/debug-label/swc_jotai_debug_label.wasm
    1: RuntimeError: unreachable
           at <unnamed> (<module>[1290]:0x71005)
           .....

Might be related to #22.

@trustedtomato
Copy link

Experiencing the same issue. I'm also looking for a project with working Vite+React+@vitejs/plugin-react-swc so that I can copy the version numbers. I have tried overwriting plugin-react-swc to use @swc/core 1.3.105 (using package.json overrides), but the error remained, so I guess the error is coming from somewhere else.

@jaens
Copy link
Author

jaens commented Feb 13, 2024

@vitejs/plugin-react-swc v3.5.0 still works with current version of Vite (v5.1.1) , so pinning that version is a workaround, for now.

@adamelliotfields
Copy link

This is currently working for me:

{
  "type": "module",
  "devDependencies": {
    "@swc-jotai/react-refresh": "0.1.0",
    "@tsconfig/vite-react": "3.0.0",
    "@types/node": "20",
    "@types/react": "18.2",
    "@types/react-dom": "18.2",
    "@vitejs/plugin-react-swc": "3.5.0",
    "typescript": "5.3.3",
    "vite": "5.1.2"
  },
  "overrides": {
    "@swc/core": "1.3.105"
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants