Show your package.json
Dec 17, 2022
8
Level 17
Problem with vite and laravel ui
Today I installed a fresh Laravel app and then installed laravel/ui using this commands:
composer require laravel/ui
php artisan ui bootstrap
php artisan ui vue
php artisan ui bootstrap --auth
and inside vite.js I added this lines:
import vue from '@vitejs/plugin-vue';
,
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
but when I want to npm install it gives me this error:
While resolving: undefined@undefined
Found: [email protected]
node_modules/vite
dev vite@"^4.0.0" from the root project
Could not resolve dependency:
peer vite@"^3.0.0" from @vitejs/[email protected]
node_modules/@vitejs/plugin-vue
dev @vitejs/plugin-vue@"^3.0.1" from the root project
Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.
Level 102
@Armani upgrade this to version 4
"@vitejs/plugin-vue": "^4.0.0",
2 likes
Please or to participate in this conversation.