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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: sourcemap.node: undefined symbol code: 'ERR_DLOPEN_FAILED' #40

Closed
karneaud opened this issue Nov 11, 2020 · 5 comments
Closed

Error: sourcemap.node: undefined symbol code: 'ERR_DLOPEN_FAILED' #40

karneaud opened this issue Nov 11, 2020 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@karneaud
Copy link

馃悰 bug report

馃帥 Configuration (.babelrc, package.json, cli command)

{
  "scripts": {
    "postinstall": "yarn run start",
  	  "start": "parcel serve index.html",
	 "dev": "parcel serve index.html & parcel watch src/index.js",
	  "build": "NODE_ENV=production parcel build src/index.js -d dist/jquery.pdf.js"
  },
	"targets":{
    	"app": "dist/jquery.pdf.js"
    },
  "dependencies":{
  	"jspdf":"~2.1.1",
  	"html2canvas":"1.0.0-rc.7",
  	"dompurify":"*"
  },
	"devDependencies": {
    	"parcel":"next"
    }
}

馃 Expected Behavior

parcel serve index.html should run server

馃槸 Current Behavior

node:internal/modules/cjs/loader:1142
return process.dlopen(module, path.toNamespacedPath(filename));
^

Error: /usr/src/node_modules/@parcel/source-map/build/Release/sourcemap.node: undefined symbol: _ZN4Napi7details31needs_objectwrap_destructor_fixE
at Object.Module._extensions..node (node:internal/modules/cjs/loader:1142:18)
at Module.load (node:internal/modules/cjs/loader:948:32)
at Function.Module._load (node:internal/modules/cjs/loader:789:14)
at Module.require (node:internal/modules/cjs/loader:972:19)
at require (node:internal/modules/cjs/helpers:88:18)
at load (/usr/src/node_modules/node-gyp-build/index.js:21:10)
at Object. (/usr/src/node_modules/@parcel/source-map/dist/node.js:14:43)
at Module._compile (node:internal/modules/cjs/loader:1083:30)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
at Module.load (node:internal/modules/cjs/loader:948:32) {
code: 'ERR_DLOPEN_FAILED'
}

馃拋 Possible Solution

I downgraded to v1 and was able to start parcel server and watch features

馃敠 Context

Trying to run a parcel based project with server

馃捇 Code Sample

馃實 Your Environment

Software Version(s)
Parcel next
Node v15.1.0
npm/Yarn 1.22.5
Operating System Docker Linux 4.19.97-v7+
@DeMoorJasper DeMoorJasper transferred this issue from parcel-bundler/parcel Nov 11, 2020
@DeMoorJasper
Copy link
Member

Hey @karneaud I think this has to do with the usage of Docker Linux?

We currently prebuild binaries for Max OS, Alpine Linux, CentOS Linux and Windows, building for Docker Linux probably requires some code changes. Any help is much appreciated

@DeMoorJasper DeMoorJasper added bug Something isn't working help wanted Extra attention is needed labels Nov 11, 2020
@mischnic
Copy link
Member

Duplicate of #33? In that case it's Arch on a Raspberry Pi, so ARM

@karneaud
Copy link
Author

Duplicate of #33? In that case it's Arch on a Raspberry Pi, so ARM

Thanks @mischnic I am also using Arch on a Raspberry Pi.....this is quite a bummer situation.

@mischnic
Copy link
Member

I do have a Raspberry Pi 1, but no time at the moment to tinker with it...

@DeMoorJasper
Copy link
Member

Gonna close this as it's a duplicate. As far as I know we do need to rebuild binaries for this regardless of whether we can fix it or not? So we probably need to get this in CI, which is not easy on Azure Devops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants