error during build:
D:\Yii2\Wnmp\nginx-bins\default\www\rrn\template\vite.config.js:1
import { defineConfig } from 'vite'
^^^^^^
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1378:20)
at Module._compile (node:internal/modules/cjs/loader:1428:41)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at require.extensions.<computed> [as .js] (D:\Yii2\Wnmp\nginx-bins\default\www\rrn\template\node_modules\vite\dist\node\chunks\dep-689425f3.js:62009:13)
at Module.load (node:internal/modules/cjs/loader:1288:32)
at Module._load (node:internal/modules/cjs/loader:1104:12)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at loadConfigFromBundledFile (D:\Yii2\Wnmp\nginx-bins\default\www\rrn\template\node_modules\vite\dist\node\chunks\dep-689425f3.js:62014:17)
at loadConfigFromFile (D:\Yii2\Wnmp\nginx-bins\default\www\rrn\template\node_modules\vite\dist\node\chunks\dep-689425f3.js:61933:32)
感觉像是nodejs的版本问题,shopwind V4.7的nodejs支持版本是多少?