Attempted to load @next/swc-win32-x64-msvc
Unanswered
Western Sandpiper posted this in #help-forum
Western SandpiperOP
Im getting error when i run dev server.
OS : Windows 11
Node version : v22.20.0 ( latest )
Bun version : 1.2.22 ( latest )
node -p "process.arch" output :
I have installed latest C++ Redistributable x64 but its still same.
│ ⚠ Attempted to load @next/swc-win32-x64-msvc, but an error occurred: A dynamic link library (DLL) initialization routine failed.
│ \\?\C:\Users\dogus\Documents\test\node_modules\.bun\@next+swc-win32-x64-msvc@15.6.0-canary.27\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node
│ ⚠ Attempted to load @next/swc-wasm-nodejs, but it was not installed
│ ⚠ Attempted to load @next/swc-wasm-web, but it was not installed
│ ⨯ Failed to load SWC binary for win32/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
OS : Windows 11
Node version : v22.20.0 ( latest )
Bun version : 1.2.22 ( latest )
node -p "process.arch" output :
x64
I have installed latest C++ Redistributable x64 but its still same.
9 Replies
Western SandpiperOP
It works on next 15.3.5 version
Western SandpiperOP
@riské any help sir?
@Western Sandpiper Im getting error when i run dev server.
│ ⚠ Attempted to load @next/swc-win32-x64-msvc, but an error occurred: A dynamic link library (DLL) initialization routine failed.
│ \\?\C:\Users\dogus\Documents\test\node_modules\.bun\@next+swc-win32-x64-msvc@15.6.0-canary.27\node_modules\@next\swc-win32-x64-msvc\next-swc.win32-x64-msvc.node
│ ⚠ Attempted to load @next/swc-wasm-nodejs, but it was not installed
│ ⚠ Attempted to load @next/swc-wasm-web, but it was not installed
│ ⨯ Failed to load SWC binary for win32/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
OS : Windows 11
Node version : v22.20.0 ( latest )
Bun version : 1.2.22 ( latest )
node -p "process.arch" output : `x64`
I have installed latest C++ Redistributable x64 but its still same.
there is a link there which should explain something, try the steps it says: https://nextjs.org/docs/messages/failed-loading-swc
if not im afraid we cannot help much with it either, since even the official troubleshooting documentation couldn't help
if not im afraid we cannot help much with it either, since even the official troubleshooting documentation couldn't help
@joulev there is a link there which should explain something, try the steps it says: https://nextjs.org/docs/messages/failed-loading-swc
if not im afraid we cannot help much with it either, since even the official troubleshooting documentation couldn't help
Western SandpiperOP
yeah i tried everything
still same
i disabled --turbopack
do you know anywhere to help me?
or should i create issue on github
@Western Sandpiper or should i create issue on github
yeah... then github would be your best bet
searching for "A dynamic link library (DLL) initialization routine failed. nextjs" on google also returned some solutions/workarounds, try them as well, hopefully at least one of them works
searching for "A dynamic link library (DLL) initialization routine failed. nextjs" on google also returned some solutions/workarounds, try them as well, hopefully at least one of them works