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
today I tried to bump all our node dependencies to latest. After that, our browserify build has stop working:
npx browserify -e src/index.js -o dist/lib.js
Error: Can't walk dependency graph: ENOENT: no such file or directory, lstat '/Users/jkr/Downloads/s/process'
required by /Users/jkr/Downloads/s/node_modules/node-jose/lib/index.js
npm ERR! code 1
npm ERR! path /Users/jkr/Downloads/s
npm ERR! command failed
npm ERR! command sh -c browserify -e src/index.js -o dist/lib.js
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/jkr/.npm/_logs/2020-11-05T19_08_29_056Z-debug.log
The error does not appear with node-jose 1.1.3 and browserify 16.5.0 but using node-jose 2.0.0 and browserify 17.0.0 the error appears now.
How to reproduce:
Run npm install -S node-jose
Create a file with content:const jose = require('node-jose')
Run npx browserify -e index.js -o lib.js --node or npx browserify index.js > lib.js
The --node option does not change anything.
This error is may related to the PR #284 which introduce an own process shim.
The text was updated successfully, but these errors were encountered:
Bundling succeeds after modifying node-js/lib/index.js by adding a slash to "process": require("process/")
So it appears Add better react and react-native compatibility #284 is causing browserify bundling to fail.
Discussion at Browserify here suggests that require("process/") would be the correct formulation.
crb02005
added a commit
to crb02005/node-jose
that referenced
this issue
Jul 13, 2022
Ref: browserify/browserify#1986
Hi,
today I tried to bump all our node dependencies to latest. After that, our browserify build has stop working:
The error does not appear with node-jose 1.1.3 and browserify 16.5.0 but using node-jose 2.0.0 and browserify 17.0.0 the error appears now.
How to reproduce:
npm install -S node-jose
const jose = require('node-jose')
npx browserify -e index.js -o lib.js --node
ornpx browserify index.js > lib.js
The
--node
option does not change anything.This error is may related to the PR #284 which introduce an own process shim.
The text was updated successfully, but these errors were encountered: