Skip to content

Error: Cannot load native addon because loading addons is disabled #1855

Open
parcel-bundler/parcel
#8630
@ahaoboy

Description

@ahaoboy

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

❯ 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'
}

Steps to Reproduce

In this project run cmd npm run dev
https://stackblitz.com/edit/github-jn7xvb?file=index.js

Expected 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

Additional Context/Questions
Add any other context or questions regarding this bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions