Parcel: `--open` flag not working in Parcel 2

Created on 18 Nov 2019  ยท  5Comments  ยท  Source: parcel-bundler/parcel

๐Ÿ› 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)

Good First Issue Bug โœจ Parcel 2

Most helpful comment

Ow yes it can, thanks for the heads up. For any future reference install parcel@nightly to have this fixed

All 5 comments

I will take this issue!

Seem to work with [email protected]

Yes, this issue is specific to Parcel 2 @mackness.

I think this one can be closed! #4596

Ow yes it can, thanks for the heads up. For any future reference install parcel@nightly to have this fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidnagli picture davidnagli  ยท  3Comments

medhatdawoud picture medhatdawoud  ยท  3Comments

philipodev picture philipodev  ยท  3Comments

donaldallen picture donaldallen  ยท  3Comments

will-stone picture will-stone  ยท  3Comments