Ref: browserify/browserify#1986
Hi,
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.
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-joseconst jose = require('node-jose')npx browserify -e index.js -o lib.js --nodeornpx browserify index.js > lib.jsThe
--nodeoption does not change anything.This error is may related to the PR #284 which introduce an own process shim.