question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught Error: Cannot find module '_process'

See original GitHub issue

Version: 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
peacemakrcommented, Dec 15, 2016

FYI: I used 6.0.7 without this issue

0reactions
lpincacommented, Dec 13, 2016

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 excluded debug from the bundle. This also helps reducing the library size.

Thanks for reporting.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found