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

Not working in webpack #118

Closed
JakeCoxon opened this issue Nov 18, 2016 · 1 comment · Fixed by #130
Closed

Not working in webpack #118

JakeCoxon opened this issue Nov 18, 2016 · 1 comment · Fixed by #130

Comments

@JakeCoxon
Copy link

I get this error when running with webpack

Error in ./~/xmlhttprequest/lib/XMLHttpRequest.js
Module not found: 'child_process' in myapp/node_modules/xmlhttprequest/lib

 @ ./~/xmlhttprequest/lib/XMLHttpRequest.js 15:12-36

But I see there is a config to compile for the browser? Is the browser dist supposed to be on NPM?

@riongull
Copy link

I'm having the exact same issue as @JakeCoxon. My project is using Webpack indirectly via Gatsby, specifically using the gatsby develop command. Hot Module Replacement breaks. Checking now to see if error still occurs when using other gatsby cli commands (which also call Webpack, but without HMR).

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

Successfully merging a pull request may close this issue.

2 participants