`--open` flag not working in Parcel 2
See original GitHub issue🐛 Bug Report
I tried passing --open
to the parcel src/index.html
command, but nothing happened. This feature works perfectly in the latest stable parcel-bundler
package.
🎛 Configuration (package.json)
{
"scripts": {
"start": "parcel src/index.html --open"
}
}
🤔 Expected Behavior
Parcel should open http://localhost:1234
in my default web browser.
😯 Current Behavior
Nothing happens.
🔦 Context
I tried to use the --open
flag as I’m used to do in parcel-bundler
.
💻 Code Sample
src/index.html:
hello world
package.json:
{
"scripts": {
"start": "parcel src/index.html --open"
}
}
$ yarn start
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | 2.0.0-alpha.2.1 |
Node | v13.0.1 |
Yarn | 1.19.1 |
Operating System | Windows 10 v1809 (x64) |
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
CLI - Parcel
The parcel CLI is the most common way to use Parcel. It supports three different commands: serve, watch, and build.
Read more >parcel - npm
Start using parcel in your project by running `npm i parcel`. ... The actual (somewhat complete) documentation for Parcel 2 is available ...
Read more >Parcel 2: The Best Frontend Bundler - YouTube
Today we're playing with Parcel 2 ! Parcel is an alternative to Webpack. It prides itself on being ready to use out of...
Read more >Parcel does nothing and is not recognized as a command
It looks like you're having two problems - actually getting parcel installed correctly and getting unexpected output when you run it.
Read more >How to Bundle a Web App with Parcel.js - DigitalOcean
Parcel.js is an open source bundler. ... If you're still having a problem, stop your server from running by pressing CTRL+C in your...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ow yes it can, thanks for the heads up. For any future reference install
parcel@nightly
to have this fixedI will take this issue!