-
-
Notifications
You must be signed in to change notification settings - Fork 273
Cannot resolve node.js core modules in Webpack 2 #55
Comments
I thought it could be because of I also thought it could be |
It looks like it referenced to #44 |
@GProst Does it still work with webpack 1 |
@TrySound all worked well when I was on webpack 1, if that's what you asked |
I mean current version of worker loader with webpack 1. |
@TrySound yep, I've just checked it. 0.8.0 version seems to work fine with webpack 1. Btw, I updated up all of my loaders when migrated. |
Hi, I ran into the same problem today. Any progress on this one so far? |
@mdh-cc Not yet. I will be glad to accept a PR. |
any news? |
@Zuzon can your create minimal reproducible test repo? |
in my case: |
If anyone runs into this problem like me (being a complete beginner) using electron and WebWorkers, the issue is that web workers don't support Node so it is not possible to use fs or path |
it's possible with nwjs since 0.18.4 |
Any news regarding this issue? |
Can this be closed since #76 was merged and included in 1.0.0? |
After I migrated from webpack 1 it started to throw following errors:
Module not found: Error: Can't resolve 'path' in /absolute-file-path
Modules, which cause errors are:
path
,fs
,vm
,crypto
andconstants
I've figured out that
webpack
can't resolve it only when it required from file, which was processed byworker-loader
.Tried to load it via
require(worker-loader!file-name.js)
syntax and via webpack.config.js settingsHere is my webpack.config.js:
The text was updated successfully, but these errors were encountered: