webpack-build-server example doesn't build/run according to README instructions #3560
Closed
1 of 2 tasks
Labels
documentation
Improvements or additions to documentation
You want to:
Current behaviour
git@github.com:socketio/socket.io.git
cd socket.io/examples/webpack-build-server
npm install
npm run build
ornpm start
will fail with multiple webpack errors, see belowThe Readme states:
These are solved by installing a specific version of
uws
as described in this comment: #3249 (comment)However, there remains the issue of webpack not being able to process
ws
. See end of issue for stacktraces.If I update
webpack.config.js
with eithernoParse: /ws/
orexternals: ['ws']
,npm start
will fail withws not found
.Steps to reproduce (if the current behaviour is a bug)
See above
Expected behaviour
The build step and the run step should complete successfully. As the example is an entry point for many, it's incredibly frustrating to not being able to build and run it.
Setup
Other information (e.g. stacktraces, related issues, suggestions how to fix)
After installing
uws
After I add only
externals: ['ws']
towebpack.config.js
and runnpm start
After I add only
module: { noParse: /ws/ }
towebpack.config.js
and runnpm start
The text was updated successfully, but these errors were encountered: