After initializing the project, the following error is reported when executing npm run dev
在初始化项目之后,执行 npm run dev的时候报如下错误
`
shell
npm create monkey
cd xxx
npm install
npm run dev
`
xxx_plugin@0.0.0 dev
vite
failed to load config from /Users/xxx/Code/xxx_plugin/vite.config.ts
error when starting dev server:
SyntaxError: Unexpected token '||='
at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)
After initializing the project, the following error is reported when executing npm run dev
在初始化项目之后,执行 npm run dev的时候报如下错误
` shell npm create monkey
cd xxx
npm install
npm run dev `
failed to load config from /Users/xxx/Code/xxx_plugin/vite.config.ts error when starting dev server: SyntaxError: Unexpected token '||=' at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18)