Open ahaoboy opened 2 years ago
is there any available work arounds to this issue?
is there any available work arounds to this issue?
Use this version "@parcel/graph": "2.8.1-nightly.2828" https://stackblitz.com/edit/github-jn7xvb-xjujsj?file=package.json,index.js
I'm also experiencing this with Next.js 13
https://stackblitz.com/github/2color/js-libp2p-transports-example?file=packages/nextjs/package.json
~/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: '/'
}
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
Next.JS 13.4.1 fails to start, as it can't load native SWC add on. Bummer
The article explains the issue: https://developer.stackblitz.com/platform/webcontainers/troubleshooting-webcontainers
I'm having the same issue with Next v13:
⚠ 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
i'm having the same issue on stackblitz
same while trying to use wasm swc plugin https://stackblitz.com/edit/stackblitz-starters-8kowcr?file=app%2FCounter.tsx,package.json,next.config.js
Same here. First: npx create-next-app@latest --typescript --use-npm Then npm run dev Can I not run a simple next.js App?
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.
Description of Bug
Provide a concise description of your bug and your project link (if applicable). https://stackblitz.com/edit/github-jn7xvb?file=index.js
npm run dev
Steps to Reproduce
In this project run cmd
npm run dev
https://stackblitz.com/edit/github-jn7xvb?file=index.jsExpected Behavior
A clear and concise description of what you expected to happen. Can run correctly
Screenshots/Screencast
If applicable, add screenshots to help explain your problem.![image](https://user-images.githubusercontent.com/19884146/166131550-f637e3fa-9cdc-4a32-8953-1ad26d8ce3c7.png)
Additional Context/Questions Add any other context or questions regarding this bug.