-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Vanilla (Parcel): Default Open File is Unexpected / Unreliable #2249
Comments
Hey @karlhorky , Thanks for the really detailed description! (for the other opened issues, also 🙂) I'll brainstorm this with the team and hopefully we'll come up with a clear / intuitive enough solution. |
Weirdly enough I'm having this same issue. Currently despite my main being set in Note: Also using Parcel.js |
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made. |
not stale, although this point is no longer true:
|
And the |
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed. |
not stale |
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed. |
not stale |
This issue has automatically been marked stale because there has been no activity in a while. Please leave a comment if the issue has not been resolved, or if it is not stale for any other reason. After 2 weeks, this issue will automatically be closed, unless a comment is made or the stale label is removed. |
not stale |
🐛 bug report
Description of the problem
Opening a Vanilla (Parcel) sandbox, it is not clear which file will open.
I have been unable to find why this is in my quick investigation of the behavior, but starting from a fresh sandbox, its behavior can be characterized as the following through these reproduction steps:
src/index.js
, even though it is not listed under themain
field inpackage.json
index.html
), then the default file that will open will now beindex.html
src/styles.css
file is renamed tosrc/index.css
then this file will now be the default file to open.index.html
file is deleted and recreated, this will again become the default file to open 😳It seems like there should be a more clear, reliable list of default files. My suggestion would be:
main
field inpackage.json
If these three configuration options are not set, I would suggest not opening any file initially.
This may also apply to other templates, potentially in different ways.
How has this issue affected you? What are you trying to accomplish?
I would like my sandboxes to have a reliable default initial file, based on clear rules.
Link to sandbox: link (optional)
Your Environment
Related
Allow setting the initial opened file in
sandbox.config.js
: #514Add sandbox configuration to change default opened file: #1254
Other related features:
Array syntax for
main
field inpackage.json
: #1739Open previously-opened files on refresh: #1456
Partially related:
Vanilla (Parcel) Unreliable Behavior When index.html Under Other Path (for example, in src)
#2240
The text was updated successfully, but these errors were encountered: