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
Hello i am facing the issue trying to deploy my Laravel, Inertia, Vite, Vue app on vercel.
i have no error testing my app in my localhost, everythinh works...
Vercel insted print this error:
[vite:load-fallback] Could not load /vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js (imported by resources/js/app.js): ENOENT: no such file or directory, open '/vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js' error during build: Error: Could not load /vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js (imported by resources/js/app.js): ENOENT: no such file or directory, open '/vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js' Error: Command "npm run build" exited with 1
import { createApp, h } from "vue";
import { createInertiaApp } from "@inertiajs/vue3";
import MainLayout from "@/Layouts/Mainlayout.vue";
import { ZiggyVue } from "ziggy";
createInertiaApp({
progress: {
// The delay after which the progress bar will appear, in milliseconds...
delay: 250,
// The color of the progress bar...
color: "#29d",
// Whether to include the default NProgress styles...
includeCSS: true,
// Whether the NProgress spinner will be shown...
showSpinner: false,
},
resolve: (name) => {
const pages = import.meta.glob("./Pages/**/*.vue", { eager: true });
let page = pages[`./Pages/${name}.vue`];
page.default.layout = page.default.layout || MainLayout;
return page;
},
setup({ el, App, props, plugin }) {
createApp({ render: () => h(App, props) })
.use(plugin)
.use(ZiggyVue)
.mount(el);
},
});
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello i am facing the issue trying to deploy my Laravel, Inertia, Vite, Vue app on vercel.
i have no error testing my app in my localhost, everythinh works...
Vercel insted print this error:
[vite:load-fallback] Could not load /vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js (imported by resources/js/app.js): ENOENT: no such file or directory, open '/vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js' error during build: Error: Could not load /vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js (imported by resources/js/app.js): ENOENT: no such file or directory, open '/vercel/path0/vendor/tightenco/ziggy/dist/vue.es.js' Error: Command "npm run build" exited with 1
This is my vite.config.js file:
and this is my app.js file:
how can i fix with vercel?? Thank you
Beta Was this translation helpful? Give feedback.
All reactions