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

Error while running example general/config-array #5085

Closed
ayushkumarbhadani opened this issue Mar 5, 2024 · 1 comment · Fixed by #5086
Closed

Error while running example general/config-array #5085

ayushkumarbhadani opened this issue Mar 5, 2024 · 1 comment · Fixed by #5086

Comments

@ayushkumarbhadani
Copy link
Contributor

Bug report

Actual Behavior

I was trying to run an example from examples/general/config-array and encountered this error:
Screenshot 2024-03-05 at 5 57 26 AM

Looks like the mode is not specified in the second object of the array.
Screenshot 2024-03-05 at 6 12 33 AM

Expected Behavior

After running the example it should open the example on a web browser without any error.

How Do We Reproduce?

go to examples/general/config-array directory and run npx webpack serve --open using the terminal. It will open up a webpage with this error.

Please paste the results of npx webpack-cli info here, and mention other relevant information

System:
OS: macOS 14.1.1
CPU: (8) arm64 Apple M1 Pro
Memory: 72.84 MB / 16.00 GB
Binaries:
Node: 20.3.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 9.9.2 - /opt/homebrew/bin/npm
Browsers:
Chrome: 122.0.6261.94
Safari: 17.1

@ayushkumarbhadani
Copy link
Contributor Author

I have started fixing it and will create a PR soon. It is a quick fix. 😉

ayushkumarbhadani added a commit to ayushkumarbhadani/webpack-dev-server that referenced this issue Mar 5, 2024
Resolve issue in examples/general/config-array where absence of 'mode'
property in second configuration object caused an error.

Fixes webpack#5085
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.

1 participant