Replies: 1 comment 2 replies
-
Does
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get this running with Laravel Vite, Inertia and Vue 3.
I've set up my
vite.config.ts
to resolvevendor/tightenco/ziggy/dist/vue
, butimport { ZiggyVue } from ziggy
results in an error:The requested module '/vendor/tightenco/ziggy/dist/vue.js' does not provide an export named 'ZiggyVue'
.The files are indeed present at
vendor/tightenco/ziggy/dist/vue.js
I've tried
import * as ZiggyVue from ziggy
which works, but then any reference toroute()
in my templates results in_ctx.route is not a function
ziggy-js
rather than the composer package?@routes
inapp.blade.php
if the route file is imported as a plugin inmain.ts
?Thanks very much any help!
main.ts
vite.config.ts
Beta Was this translation helpful? Give feedback.
All reactions