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.

Socket.io-client integration

See original GitHub issue

In the process of building a chat app with your package & socket.io-client.

Everything works great until I install socket.io-client and then webpack can’t complete the build anymore. The error I get is:

/Users/..../Documents/mouseTracker2/_tests/v3/node_modules/webpack-target-electron-renderer/node_modules/webpack/lib/ExternalModuleFactoryPlugin.js:37
                                        if(externals === dependency.request) {
                                                                   ^
TypeError: Cannot read property 'request' of undefined

Any idea of what’s going on? I tried installing the types for socket.io-client with no luck. Is this a webpack-target-electron-renderer issue or a typescript issue.

Thanks in advance for your help.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:5
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
chentsulincommented, Feb 6, 2017

webpack 2 has built-in support for electron, so you should never use this module with webpack 2.

0reactions
set321gocommented, Feb 6, 2017

oh cool I didn’t know that. will try without it thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get started | Socket.IO
A server that integrates with (or mounts on) the Node.JS HTTP Server socket.io · A client library that loads on the browser side...
Read more >
Integrate Socket.IO with Node.Js + Express | Medium
Socket.IO is a JavaScript library for real-time web applications. It enables real-time, bi-directional communication between web clients and ...
Read more >
Socket.io - npm
A heartbeat mechanism is implemented at the Engine.IO level, allowing both the server and the client to know when the other one is...
Read more >
Create a Secure Chat Application with Socket.IO and React
The WebSocket protocol builds on top of the HTTP protocol to provide a persistent bi-directional connection between the client and the ...
Read more >
Node.js Socket.io tutorial: Real-time chat application | TSH.io
Below, I'll present to you a brief Socket.io tutorial on how to create a simple chat application with Vanilla JS frontend part and...
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