You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for all the work on Vite, I've been enjoying using it as a faster alternative. Sorry if this issue was ever brought up before; I dug around a bit but didn't see it here.
Clear and concise description of the problem
I was just building a project and ran 'npx vite run build' (because I'm still very used to Create React App) and Vite doesn't throw any sort of error. It will quickly just tell me the app is running locally, though when I go to Chrome it says: This localhost page can’t be found. It took me a minute to figure out I was supposed to type 'npx vite build' which of course, worked.
Suggested solution
I think a prompt here like "Did you mean npx vite build?" would be helpful and provide more context. Thanks for reading.
The text was updated successfully, but these errors were encountered:
Hi, we've discussed this in the team meeting and agreed to leave the behaviour as is for now as it's an edge case. If the command failed, vite --help should provide details on running things correctly.
There are ongoing PRs like cacjs/cac#135 that could help make the behavior clearer, but that would be a nice-to-have if it gets merge (and updated the dependency in Vite).
Hey, thanks for all the work on Vite, I've been enjoying using it as a faster alternative. Sorry if this issue was ever brought up before; I dug around a bit but didn't see it here.
Clear and concise description of the problem
I was just building a project and ran 'npx vite run build' (because I'm still very used to Create React App) and Vite doesn't throw any sort of error. It will quickly just tell me the app is running locally, though when I go to Chrome it says: This localhost page can’t be found. It took me a minute to figure out I was supposed to type 'npx vite build' which of course, worked.
Suggested solution
I think a prompt here like "Did you mean npx vite build?" would be helpful and provide more context. Thanks for reading.
The text was updated successfully, but these errors were encountered: