You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using inertia with vue laravel, everything works on local but on production whenever i redirect the user to other pages vite will pop up undefined reading version. what could be the problem. i use laravel forge for deployment.
Reproduction
npm run build
Steps to reproduce
No response
System Info
here is my vite config:
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import laravel from "laravel-vite-plugin";
import vuetify from "vite-plugin-vuetify";
import * as path from "path";export default defineConfig({
plugins: [
laravel({
input: ["resources/scripts/app.ts"],
refresh: true,
}),
vue(),
vuetify({
autoImport: true,
}),
],
css: {
preprocessorOptions: {
scss: {
additionalData: ` @use "@/sass/_new-wireframe-variables" as vars; @use "@/sass/v2/style.scss";`,
api: 'modern-compiler',
},
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "resources"),
},
},
optimizeDeps: {
include: ["laravel-vite-plugin"],
exclude: ["fsevents"],
esbuildOptions: {
target: "esnext",
loader: {
".ts": "ts",
},
},
},
server: {
hmr: {
host: "localhost",
},
},
});
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Hello @muhammedjafer. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with needs reproduction will be closed if they have no activity within 3 days.
Describe the bug
I am using inertia with vue laravel, everything works on local but on production whenever i redirect the user to other pages vite will pop up undefined reading version. what could be the problem. i use laravel forge for deployment.
Reproduction
npm run build
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: