Skip to content

[Typo]: wrong vite command on the "Building a React Framework" page #7614

Closed
@elitalpa

Description

@elitalpa

Summary

The command mentioned at Building a React Framework is not the correct command for starting a vite project and therefore fails.

Image

Image

The vite docs Getting Started page recommends a command like this :

npm create vite@latest my-app -- --template react

Page

https://react.dev/learn/building-a-react-framework

Details

The npx vite@latest —template react command should be replaced by the following command which is mentioned in the vite docs :

npm create vite@latest my-app -- --template react

An alternative would be to mention only the npm create vite@latest and tell the user to select react :
Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions