And you performed every step in the upgrade guide to manually upgrade laravel prior to upgrading the framework?
Jun 9, 2023
2
Level 1
After update laravel 9 to 10 version , the command npm run dev doesn't work and detect changes
Vite Plugin Version
4.3.9
Laravel Version
10.13.2
Node Version
20.2.0
NPM Version
9.7.1
Operating System
Windows (WSL)
OS Version
10
Web browser and version
Firefox 113.0.2
Running in Sail?
No
Description
Hi guys,
I started developing a project in laravel version 9 with vue. Then when Laravel released a new version (10) I updated my project to the new version. After that, when I do "npm run dev" the project doesn't load and it doesn't detect any changes in the vue files.
This is my vite.config.js file
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import vue from '@vitejs/plugin-vue';
import * as path from 'path';
export default defineConfig({
plugins: [
laravel({
input: [
'resources/assets/js/app.js',
],
refresh: true,
}),
vue({
template: {
transformAssetUrls: {
base: null,
includeAbsolute: false,
},
},
}),
],
css: {
preprocessorOptions: {
scss: {
additionalData: `@import "./resources/assets/sass/_variables.scss";`
}
}
},
resolve: {
alias: {
vue: 'vue/dist/vue.esm-bundler.js',
'~bootstrap': path.resolve(__dirname, 'node_modules/bootstrap'),
},
},
});
Can anyone help?
Please or to participate in this conversation.