We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was trying to run an example from examples/general/config-array and encountered this error:
Looks like the mode is not specified in the second object of the array.
After running the example it should open the example on a web browser without any error.
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.
examples/general/config-array
npx webpack serve --open
npx webpack-cli info
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
The text was updated successfully, but these errors were encountered:
I have started fixing it and will create a PR soon. It is a quick fix. 😉
Sorry, something went wrong.
fix: add 'mode' property in second array object
162ac9a
Resolve issue in examples/general/config-array where absence of 'mode' property in second configuration object caused an error. Fixes webpack#5085
Successfully merging a pull request may close this issue.
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](https://private-user-images.githubusercontent.com/73775939/309940301-df2aed5c-df91-4242-9252-b6e64377443c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMwNzQ5OTcsIm5iZiI6MTcyMzA3NDY5NywicGF0aCI6Ii83Mzc3NTkzOS8zMDk5NDAzMDEtZGYyYWVkNWMtZGY5MS00MjQyLTkyNTItYjZlNjQzNzc0NDNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA3VDIzNTEzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIyOTgwY2FmNjBkMmZiM2NiM2FkMDlhZmVjNjJkZjhhYzczNDcwNzVkZTVmNzlhNWQ0NTk4MjQzNWJkMWEyZjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.XOxd4WCOgdrf5UVM8wzBu_ardx90p7t5wLh1qdx8P0Y)
Looks like the mode is not specified in the second object of the array.
![Screenshot 2024-03-05 at 6 12 33 AM](https://private-user-images.githubusercontent.com/73775939/309941584-d03af9d5-3611-48ba-926c-55f3e8ab9d38.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMwNzQ5OTcsIm5iZiI6MTcyMzA3NDY5NywicGF0aCI6Ii83Mzc3NTkzOS8zMDk5NDE1ODQtZDAzYWY5ZDUtMzYxMS00OGJhLTkyNmMtNTVmM2U4YWI5ZDM4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODA3VDIzNTEzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQyZWU5MGM1YzZlM2IzNGIzOGI1NzBiMDAzNGY0ZmZlNmVmYzBhNjJjNTcwNGY2ZjAwZWIwMTJlMWFlOTI1MzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kpGY9xlpOKx2Uf7mDRGpyLRkkHDW4PSSNml0uTj_Pkw)
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 runnpx 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 informationSystem:
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
The text was updated successfully, but these errors were encountered: