Level 63
Perhaps this will help you ?
https://niclas-hummel.medium.com/how-to-add-vite-to-an-existing-vue3-typescript-project-7fe96e6b7c42
Hi,
I've just installed a fresh version of Laravel 9 and wanted to use Vite and Vue, but when I do
@vitejs/plugin-vue
I've got a dependency error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/vite
npm ERR! dev vite@"^2.9.14" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer vite@"^3.0.0" from @vitejs/[email protected]
npm ERR! node_modules/@vitejs/plugin-vue
npm ERR! dev @vitejs/plugin-vue@"^3.0.1" from the root project
npm ERR!
Here is my package.json
"private": true,
"scripts": {
"dev": "vite",
"build": "vite build"
},
"devDependencies": {
"@vitejs/plugin-vue": "^3.0.1",
"axios": "^0.25",
"laravel-vite-plugin": "^0.4.0",
"postcss": "^8.1.14",
"vite": "^2.9.14"
}
What should I do ?
Please or to participate in this conversation.