-
-
Notifications
You must be signed in to change notification settings - Fork 384
Description
Hey @sokra
I'm trying to replace net
with net-chromeify
I've put net-chromeify
in ./web_modules/
and this works fine on the command-line: webpack src/ComponentLoader.js temp.js --alias net=net-chromeify
I'm trying to do the same thing with webpack-dev-middleware
. My config in main.js
is this:
app.use(require('webpack-dev-middleware')(__dirname, "./src/ComponentLoader", {
webpack: {
watch: true,
debug: true,
publicPrefix: "http://localhost:3000/scripts/",
output: "bundle.js",
libary: "ComponentLoader",
alias: {net: "net-chromeify"} //I've also tried moving it outside the webpack hash
}
}));
but it can't seem to find net-chromeify
. The error suggests that it's looking for net
and not net-chromeify
:
ERROR: Cannot find module 'net'
Error: Module "net" not found in context "/Users/rainerdreyer/Workspace/PipeDream/components"
Error: /Users/rainerdreyer/Workspace/PipeDream/node_modules/webpack-dev-middleware/node_modules/webpack/buildin/net is not a directory
@ /Users/rainerdreyer/Workspace/PipeDream/components/ServerEndpoint.js (line 2, column 8)
net is not a directory...
Why is it looking for net and not net-chromeify?
Thanks! :)