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 fails to resolve default node module used within an external package #2077
Comments
This comment was marked as spam.
This comment was marked as spam.
It's using Can you provide the full stack trace from the error? |
Those the only lines of error I get, can you explain how to get full stack trace? Is there a flag for it? |
hm, not that i know of. if you edit that line on disk (just temporarily) to require the require of process, does everything work? |
const process = require(require("process")); Same error as before. |
oh sorry i meant "remove" :-p like delete that line entirely |
lol, was wondering what that would achieve. Ok, now after removing that line, it compiles bundle.js very strange. |
When the command "browserify main.js -o bundle.js" is run for main.js (see below)
it throws the error:
Error: Can't walk dependency graph: ENOENT: no such file or directory, lstat 'C:\project\process'
required by C:\project\node_modules\googleapis-common\build\src\http2.js
Browserify seems to be looking in the wrong directory for the module, what gives?
These are the imports of the 'node_modules\googleapis-common\build\src\http2.js' file, which uses the node:process module:
The text was updated successfully, but these errors were encountered: