Uncaught Error: Cannot find module '_process'
See original GitHub issueVersion: 6.0.6 engine.io: 1.8.2 Environment:
- Operating system: MacOSX
- Browser: Chrome
- Node.js: 5.12.0
Expected result: Client should load in browser without any issues
Actual result: Getting errors in browser console
primus.js:3529 Uncaught Error: Cannot find module '_process'(…)
The client library is served by Primus
<script type="text/javascript" src="/primus/primus.js" ></script>
I also see the following message on client console:
Uncaught (in promise) Error: Missing required `engine.io-client` module. Please run `npm install --save engine.io-client`(…) Line 3183
if (!factory) return primus.critical(new Error( //<--3183
I’ve already run npm install --save engine.io-client on server side and inside node_modules/primus/ and restarted server
Steps to reproduce: Just upgraded to 6.0.6 and engine.io to 1.8.2
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How do I resolve "Cannot find module" error using Node.js?
This happens when a first npm install has crashed for some reason (SIGINT of npm), or that the delay was too long, or...
Read more >Cannot find module 'node:process' since I upgraded to 11.0.1 ...
It's just expected to work. [REQUIRED] Actual behavior. Currently it returns the following error: node:internal/modules/cjs/loader:927 throw ...
Read more >cannot find module [Node npm Error Solved] - freeCodeCamp
you're trying to import an item from a module you don't have installed in your project directory; you're importing some things from an...
Read more >How to resolve "Cannot find module" error in Node - Sabe.io
To fix the Cannot find module error, simply install the missing modules using npm . To so, you can use the following command:...
Read more >Cannot find module 'X' error in Node.js | bobbyhadz
To solve the "Cannot find module" error in Node.js, make sure to install the package from the error message if it's a third-party...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI: I used 6.0.7 without this issue
The issue has been introduced with https://github.com/socketio/engine.io-client/pull/520.
In https://github.com/primus/primus/commit/f790c8ee339580d3808f0e4d718f0a46b875f625 I’ve added a browserify transform to remove all
debug
occurrences from the Engine.IO client and excludeddebug
from the bundle. This also helps reducing the library size.Thanks for reporting.