You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error: Cannot load native addon because loading addons is disabled #1855
❯ npm run dev
$ node ./index.js
Error: Cannot load native addon because loading addons is disabled.
at async ESMLoader.import (https://github-jn7xvb.w.staticblitz.com/blitz.be57dda01bcfe1c4973d7980b1ec44aabd3a6863.js:6:1208899)
at async i.loadESM (https://github-jn7xvb.w.staticblitz.com/blitz.be57dda01bcfe1c4973d7980b1ec44aabd3a6863.js:6:246545)
at async handleMainPromise (https://github-jn7xvb.w.staticblitz.com/blitz.be57dda01bcfe1c4973d7980b1ec44aabd3a6863.js:6:988909) {
code: 'ERR_DLOPEN_DISABLED'
}
~/projects/aonipgpzp.github/packages/nextjs
❯ npm run dev
$ next dev
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info - Downloading WASM swc package...
warning package.json: No license field
info - Using wasm build of next-swc
warn - Attempted to load @next/swc-linux-x64-gnu, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/aonipgpzp.github/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node
warn - Attempted to load @next/swc-linux-x64-gnux32, but it was not installed
warn - Attempted to load @next/swc-linux-x64-musl, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/aonipgpzp.github/node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node
event - compiled client and server successfully in 2.5s (703 modules)
wait - compiling / (client and server)...
event - compiled client and server successfully in 763 ms (1408 modules)
error - Error: Cannot load native addon because loading addons is disabled: /home/projects/aonipgpzp.github/node_modules/classic-level/prebuilds/linux-x64/node.napi.glibc.node
at process.dlopen (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:113672)
at Module._extensions..node (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:220122)
at Module.load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:217770)
at Module._load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:215341)
at Module.require (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:218088)
at i (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:419512)
at _0xd5330f (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:143696)
at load (file:///home/projects/aonipgpzp.github/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.eval (file:///home/projects/aonipgpzp.github/node_modules/classic-level/binding.js:1:118)
at Object.function (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:144430)
at Module._compile (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:219080)
at Module._extensions..js (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:219744)
at Module.load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:217770)
at Module._load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:215341)
at Module.require (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:218088)
at i (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:419512)
at _0xd5330f (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:143696)
at Object.eval (file:///home/projects/aonipgpzp.github/node_modules/classic-level/index.js:7:17)
at Object.function (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:144430)
at Module._compile (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:219080)
at Module._extensions..js (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:219744)
at Module.load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:217770)
at Module._load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:215341)
at Module.require (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:218088)
at i (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:419512)
at _0xd5330f (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:143696)
at Object.eval (file:///home/projects/aonipgpzp.github/node_modules/level/index.js:1:92)
at Object.function (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:144430)
at Module._compile (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:219080)
at Module._extensions..js (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:219744)
at Module.load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:217770)
at Module._load (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:215341)
at _0x41eea6.executionFunctionOrLineOffset (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:983543)
at _0x41eea6._evaluate (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:306511)
at _0x41eea6._evaluate (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:15:306631)
at async ModuleJob.run (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:987429)
at async Promise.all (index 0)
at async ESMLoader.import (https://aonipgpzpgithub-rra1.w-credentialless.staticblitz.com/blitz.9bdac2de468a4854f7bacb85c771c93d5676829b.js:6:1209138) {
code: 'ERR_DLOPEN_DISABLED',
page: '/'
}
Reacted by Oleksandr Hutsulyak, Ibrahim.H, Meghdip Karmakar, Russell Dempsey and Sam Denty
⚠ Attempted to load @next/swc-linux-x64-gnu, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/stackblitz-starters-xnukbg/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node
⚠ Attempted to load @next/swc-linux-x64-musl, but an error occurred: Cannot load native addon because loading addons is disabled: /home/projects/stackblitz-starters-xnukbg/node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node
X Failed to load SWC binary for linux/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
Still getting this issue on a Next.js 14 app. Please Stackblitz team, provide a solution. It's only the most popular React-based framework we're talking about here.
im getting this issue as well, a quick bypass is just to downgrade nextjs versions to "next": "13.5.1" instead of the latest one, and it seems to work as a temporary bybass by allowing the nextjs to still run, but the error is still present.
Reacted by Onur Usluca, Divyansh Singh, Abraham Schilling, mrcaidev, Samuel MARLHENS, Haz, Andy Van Slaars, タピオカ飲んでTikTokやってSNSでいいねもらえたら後はどうでもいい, Kit Pearson, Juan Carlos Galindo Navarro and 6 more
I'm confirming this now but sections of Tailwind as well as parts if not all of Next.js's Turbopack is written in rust I believe, and because Rust is not a native language on the browser, like Javascript is, that's why these errors persist. The errors should be avoidable with a v3.x.x version of tailwind and just remove the --turbopack flag from the npm run dev script in your package.json... and that does seem like it.
I created a working and compatible Next.js / Tailwind / GSAP / ShadCn / React-Hook-Form / Typescript / Zod template y'all can build off of.
If you're configuring off of a fresh next.js setup, you have to remove the "@tailwindcss/postcss" from your package.json since that's tailwind 4 only. Also, update your postcss.config.mjs to
module.exports={plugins: {tailwindcss: {},autoprefixer: {},'@tailwindcss/postcss': {},// optional: only include this if you're using it directly},}
and these 3 are the main items that need to match each other:
"tailwindcss": "^3.4.1", // or whatever 3.x you want"postcss": "^8.4.38",
"autoprefixer": "^10.4.19"
failed to load config from /home/mrruby/omniston-swap-app/vite.config.js
error when starting dev server:
Error: Failed to load native binding
at Object.eval (/home/mrruby/omniston-swap-app/node_modules/.pnpm/@tailwindcss+oxide@4.1.4/node_modules/@tailwindcss/oxide/index.js:372:11)
at Object._0x29adb5 (https://omnistonswapapp-feoj.w-credentialless-staticblitz.com/blitz.fb22cd3d.js:31:872335)
at Module._compile (node:internal/modules/cjs/loader:148:16006)
at Module._extensions..js (node:internal/modules/cjs/loader:148:16726)
at Module.load (node:internal/modules/cjs/loader:148:15281)
at Module._load (node:internal/modules/cjs/loader:148:12773)
at G.set.n (node:internal/modules/esm/translators:163:4437)
at _0x11b6bc.evaluationFunction (node:internal/modules/esm/translators:163:3218)
at _0x11b6bc.evaluate (https://omnistonswapapp-feoj.w-credentialless-staticblitz.com/blitz.fb22cd3d.js:31:838804)
at _0x56cb89._evaluate (https://omnistonswapapp-feoj.w-credentialless-staticblitz.com/blitz.fb22cd3d.js:31:846088)
Activity
NyllRE commentedon Jul 22, 2022
is there any available work arounds to this issue?
ahaoboy commentedon Nov 22, 2022
Use this version "@parcel/graph": "2.8.1-nightly.2828"
https://stackblitz.com/edit/github-jn7xvb-xjujsj?file=package.json,index.js
2color commentedon Mar 10, 2023
I'm also experiencing this with Next.js 13
https://stackblitz.com/github/2color/js-libp2p-transports-example?file=packages/nextjs/package.json
pumano commentedon Apr 7, 2023
Cannot load native addon because loading addons is disabled: /home/projects/github-aocna8/node_modules/@nrwl/nx-linux-x64-musl/nx.linux-x64-musl.node
nx not working
aperepel commentedon May 11, 2023
Next.JS 13.4.1 fails to start, as it can't load native SWC add on. Bummer
maxch-aa commentedon May 15, 2023
The article explains the issue: https://developer.stackblitz.com/platform/webcontainers/troubleshooting-webcontainers
bitsnaps commentedon Oct 12, 2023
I'm having the same issue with Next v13:
volkan0x commentedon Nov 24, 2023
i'm having the same issue on stackblitz
XantreDev commentedon Dec 23, 2023
same while trying to use wasm swc plugin https://stackblitz.com/edit/stackblitz-starters-8kowcr?file=app%2FCounter.tsx,package.json,next.config.js
ulrischa commentedon Jun 7, 2024
Same here. First: npx create-next-app@latest --typescript --use-npm
Then npm run dev
Can I not run a simple next.js App?
empz commentedon Jul 2, 2024
Still getting this issue on a Next.js 14 app. Please Stackblitz team, provide a solution. It's only the most popular React-based framework we're talking about here.
Th3R1c0 commentedon Jul 9, 2024
im getting this issue as well, a quick bypass is just to downgrade nextjs versions to "next": "13.5.1" instead of the latest one, and it seems to work as a temporary bybass by allowing the nextjs to still run, but the error is still present.
candidia commentedon Sep 25, 2024
This affects tailwind v4 https://stackblitz.com/edit/remix-run-remix-kfshfc?file=app%2Froot.tsx
eldados commentedon Oct 9, 2024
got the same issue with nextjs 14, is there a fix?
sequba commentedon Jan 15, 2025
I had the same issue with JS project using
parcel. I switched toviteand it works fine.oceangravity commentedon Feb 27, 2025
Unfortunately, I can confirm that this issue is currently occurring with Tailwind 4.
😢
tsotimus commentedon Feb 28, 2025
Want to confirm that this is effecting tailwind v4 - I was using vite 6.0+
CypherpunkSamurai commentedon Mar 4, 2025
I want to report that this issue occurs when cold booting the web container, when we have a running container and we install tailwind it works fine.
razzededge commentedon Mar 22, 2025
a bummer, tailwind 4 cannot be run
ShayokhShorfuddin commentedon Apr 7, 2025
Tailwind v4 doesn't work.
Gold240sx commentedon Apr 10, 2025
I'm confirming this now but sections of Tailwind as well as parts if not all of Next.js's Turbopack is written in rust I believe, and because Rust is not a native language on the browser, like Javascript is, that's why these errors persist. The errors should be avoidable with a v3.x.x version of tailwind and just remove the --turbopack flag from the npm run dev script in your package.json... and that does seem like it.
I created a working and compatible Next.js / Tailwind / GSAP / ShadCn / React-Hook-Form / Typescript / Zod template y'all can build off of.
NextBlitz
And the package.json that worked for my stackblitz setup was:
If you're configuring off of a fresh next.js setup, you have to remove the "@tailwindcss/postcss" from your package.json since that's tailwind 4 only. Also, update your postcss.config.mjs to
and these 3 are the main items that need to match each other:
messenjer commentedon Apr 14, 2025
The new version of tailwind v4.1.4 :
@tailwindcss/oxide-wasm32-wasitailwindlabs/tailwindcss#17558mrruby commentedon Apr 15, 2025