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

Conversation

btea
Copy link
Contributor

@btea btea commented Jul 11, 2025

Description of Problem

The vite version currently supported by create-vue is 7, and the node version required by vite is as follows. In order to ensure that the created project is OK, you need to synchronize the node version information.

https://github.com/vitejs/vite/blob/588b3b5a44eef35bcca0e3079df579d50a528421/package.json#L6

Proposed Solution

Additional Information

Copy link

netlify bot commented Jul 11, 2025

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit f68c55c
🔍 Latest deploy log https://app.netlify.com/projects/vuejs/deploys/6870973d93cd8100081c3332
😎 Deploy Preview https://deploy-preview-3263--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants