Skip to content

prompt user when wrong build command is given #3754

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions