Skip to content

docs: sync vite need node version #3263

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/guide/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { VTCodeGroup, VTCodeGroupTab } from '@vue/theme'
:::tip Prerequisites

- Familiarity with the command line
- Install [Node.js](https://nodejs.org/) version 18.3 or higher
- Install [Node.js](https://nodejs.org/) version `^20.19.0 || >=22.12.0`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: would any version higher than 20.19 work? It's better to avoid using logical operators in quick start and try to phrase it with words

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this is not the case. In order to ensure that require(esm) is OK, vite7 adjusts the required node version to this. refer to vitejs/vite#19972 (comment) https://nodejs.org/api/modules.html#loading-ecmascript-modules-using-require

:::

In this section we will introduce how to scaffold a Vue [Single Page Application](/guide/extras/ways-of-using-vue#single-page-application-spa) on your local machine. The created project will be using a build setup based on [Vite](https://vitejs.dev) and allow us to use Vue [Single-File Components](/guide/scaling-up/sfc) (SFCs).
Expand Down