You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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! :)
The text was updated successfully, but these errors were encountered:
Hey @sokra
I'm trying to replace
net
with net-chromeifyI'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 inmain.js
is this:but it can't seem to find
net-chromeify
. The error suggests that it's looking fornet
and notnet-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! :)
The text was updated successfully, but these errors were encountered: