Closed hawkiq closed 2 years ago
Thanks for the detailed description!
This should fix it:
- ziggy: path.resolve('vendor/tightenco/ziggy/dist/vue'),
+ ziggy: path.resolve('vendor/tightenco/ziggy/dist/vue.es.js'),
I don't know what that error message means exactly, but looking at it locally it looks like Vite is resolving vue
at the end of the aliased path to vue.js
, which is the UMD build, which I guess Vite doesn't like. If you explicitly point it at either vue.es.js
or vue.m.js
it works normally.
Hello I used Ziggy with many Laravel versions and it was works immediately using
@routes
in blade but after switching to Laravel 9 I started to not understand how to properly setup Ziggy so I will say what I've done and tell me why i Keep gettingambiguous indirect export: ZiggyVue
error.installed latest version of ziggy using composer
composer require tightenco/ziggy
published routes to ziggy.js
php artisan ziggy:generate
here is my vite.config.js file
My app.js file
but when am using route inside vue file it says
ambiguous indirect export: ZiggyVue
when i tried to use
@routes
in blades it gave me_ctx.route is not a function
what should I do to make it works as before .?