Vue Plugin isnt delivered with Composer package #727
-
Ziggy version2.0.4 Laravel version10.47.0 DescriptionAfter upgrading to Ziggy 2 and changing the necressary parts I cant compile the VueJS frontend anymore, as the said VueJS plugin described here: doesnt exist in the package when installed via Composer, this results in an exception when trying to build the assets:
I created the file for my own from the file in the git repository, but on every update it will get deleted this way. Ziggy call and contextimport { ZiggyVue } from '../../vendor/tightenco/ziggy/dist/vue.es.js';
import { Ziggy } from './ziggy';
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => resolvePageComponent(`./Pages/${name}.vue`, import.meta.glob('./Pages/**/*.vue')),
setup({el, App, props, plugin})
return createApp({render: () => h(App, props)})
.use(ZiggyVue, Ziggy)
.mount(el);
},
progress: {
color: '#f600ff',
},
}); Ziggy configuration- Route definition- |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
In v2 the Vue plugin moved to the root of the package, so there's no import { ZiggyVue } from '../../vendor/tightenco/ziggy'; That should do it, let me know. |
Beta Was this translation helpful? Give feedback.
-
Still the same problem as said above:
|
Beta Was this translation helpful? Give feedback.
In v2 the Vue plugin moved to the root of the package, so there's no
vue.es.js
file anymore. Update your import to:That should do it, let me know.