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

browserify: Can't walk dependency graph #301

Open
jkroepke opened this issue Nov 5, 2020 · 1 comment
Open

browserify: Can't walk dependency graph #301

jkroepke opened this issue Nov 5, 2020 · 1 comment

Comments

@jkroepke
Copy link

jkroepke commented Nov 5, 2020

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:

  1. Run npm install -S node-jose
  2. Create a file with content:const jose = require('node-jose')
  3. 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.

@dstaudt
Copy link

dstaudt commented Mar 23, 2022

Some observations:

crb02005 added a commit to crb02005/node-jose that referenced this issue Jul 13, 2022
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