-
-
Notifications
You must be signed in to change notification settings - Fork 598
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: option '--open <value>' argument missing #2001
Comments
Thanks for the report. I will look into it in near future. |
I have the same problem. My version information is: "webpack": "^5.3.2",
"webpack-cli": "^4.1.0",
"webpack-dev-server": "^3.11.0" |
I have the same probem |
Work in progress |
I was following the tutorial from the official website. This If you just like me, trying to learn Webpack and don't care, providing the url allows you to continue: |
This will be fixed with |
Providing a url like @zero41120 said didn't work for me. But, |
Yes, |
@cannandev @snitin315 I think it worked for me because that I'm on windows environment, |
Remove |
Please use the default browser by default.
|
this works for me, thanks you. |
I had the same issue, but adding the
|
I have the same probem |
Had the same problem, fixed it by just using |
Yes, and you can use --open 'nameOfYourBrowser' in my case --open 'google Chrome' |
|
@Amstrong @Hyuk both your suggestions throw the following error for me:
This is the repo I'm working on: https://github.com/mihailthebuilder/tech-asia |
@martinoppitz you don't have chrome or your browser have another name, we should improve error reporting |
@mihailthebuilder Can you share the running script in package.json?. I clone your repository to fix the error, and the |
@Amstrong the running script in package.json is |
This works for me, on a windows 10 machine with NodeJs 15 and webpack 5 |
@gauravkrp can you try with webpack-dev-server@next |
I have removed |
remove
in this case, that opens your default browser |
Según lo nuevo de webpack en su documentación, a la hora de configurar el webpack-dev-server hay que usar así la estructura del objeto devServer:{ |
En realidad si, lo puedes lograr así. Solo que cambio la forma explicita como estaba definida la sintaxis. |
Two Ways Worked for me Thanks to previous answers
First Option will open the link on the browser. So why not? |
I believe this was already fixed in the latest |
Still valid, will be fixed in |
We have big refactor, so I don't have time to fix some bugs, focus on serve and bugs |
Fixed, please update |
As per the request here webpack/webpack.js.org#4099 (comment).
Describe the bug
webpack serve --open
throws an error:What is the current behavior?
To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/chenxsan/webpack-demo
git checkout 8ffd9d229ce344fb4b595e4045aee7b074be16cc
npm install
npm start
Expected behavior
Screenshots
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
The text was updated successfully, but these errors were encountered: