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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process.binding no longer supported #163

Closed
cam-shotter opened this issue Nov 27, 2018 · 1 comment
Closed

process.binding no longer supported #163

cam-shotter opened this issue Nov 27, 2018 · 1 comment

Comments

@cam-shotter
Copy link

I get the following error when trying to implement the username package:

index.js:1452 execa/lib/errname: unable to establish process.binding('uv') Error: process.binding is not supported
at Object.push../node_modules/process/browser.js.process.binding (browser.js:195)
at Object. (errname.js:12)
at Object../node_modules/username/node_modules/execa/lib/errname.js (errname.js:40)
at webpack_require (bootstrap:782)
at fn (bootstrap:150)
at Object. (index.js:21)
at Object../node_modules/username/node_modules/execa/index.js (index.js:411)
at webpack_require (bootstrap:782)
at fn (bootstrap:150)
at Object. (index.js:5)
at Object../node_modules/username/index.js (index.js:62)
at webpack_require (bootstrap:782)
at fn (bootstrap:150)
at Module../src/App.js (App.css?da7c:45)
at webpack_require (bootstrap:782)
at fn (bootstrap:150)
at Module../src/index.js (index.css?02e3:45)
at webpack_require (bootstrap:782)
at fn (bootstrap:150)
at Object.0 (serviceWorker.js:131)
at webpack_require (bootstrap:782)
at checkDeferredModules (bootstrap:45)
at Array.webpackJsonpCallback [as push] (bootstrap:32)
at main.chunk.js:1

Looks like node has recently deprecated process.binding('uv') in favour of internalBinding('uv') [(https://github.com/nodejs/node/pull/22163)]

(P.S. this is my first issue submission, please let me know if you need more info.)

@sindresorhus
Copy link
Owner

That's a problem with Webpack and should be opened on the Webpack issue tracker.

Execa only uses process.binding for older Node.js versions:

uv = process.binding('uv');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants