nextjs on linux
Unanswered
Blanc de Hotot posted this in #help-forum
Blanc de HototOP
npm run dev
▲ Next.js 15.3.0 (Turbopack)
- Local: http://localhost:3000
✓ Starting...
Downloading swc package @next/swc-wasm-nodejs... to /home/QwEr/.cache/next-swc
⚠ Attempted to load /home/QwEr/web_apps/whiskers/node_modules/next/next-swc-fallback/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node, but it was not installed
⚠ Attempted to load /home/QwEr/web_apps/whiskers/node_modules/next/next-swc-fallback/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node, but it was not installed
⚠ Attempted to load @next/swc-linux-x64-gnu, but it was not installed
⚠ Attempted to load @next/swc-linux-x64-musl, but it was not installed
[Error:
whiskers@0.1.0 dev
next dev --turbopack
▲ Next.js 15.3.0 (Turbopack)
- Local: http://localhost:3000
✓ Starting...
Downloading swc package @next/swc-wasm-nodejs... to /home/QwEr/.cache/next-swc
⚠ Attempted to load /home/QwEr/web_apps/whiskers/node_modules/next/next-swc-fallback/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node, but it was not installed
⚠ Attempted to load /home/QwEr/web_apps/whiskers/node_modules/next/next-swc-fallback/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node, but it was not installed
⚠ Attempted to load @next/swc-linux-x64-gnu, but it was not installed
⚠ Attempted to load @next/swc-linux-x64-musl, but it was not installed
[Error:
turbo.createProject is not supported by the wasm bindings.]4 Replies
Silver Fox
Are you running this inside StackBlitz? The error mentions it can't load SWC (a native binary) with WASM.
Blanc de HototOP
nope, its wsl arch
Silver Fox
There seems to be [documentation on this issue](https://nextjs.org/docs/messages/failed-loading-swc), although not specifically for WSL Arch.
TLDR: It's probably best to try installing Microsoft Visual C++ Redistributable, although I don't know how that affects WSL. In the worst case you can opt out of SWC with by disabling
swcMinify in your next.config.js or by adding a .babelrc to your project with the following content:{
"presets": ["next/babel"]
}