Ziggy vue.m doesn't exists

Hi,

I'm learning "Build a Starter Kit With Inertia and Fortify" Course and I build everything up on scratch.

I got problems with lesson "06 - Exposing routes with Ziggy" I installed Ziggy with:

  • composer require tightenco/ziggy
  • npm install ziggy-js

I tried to import Ziggy with import { ZiggyVue } from "../../vendor/tightenco/ziggy/dist/vue.m but nothing appears on the page.

In my dist folder I see only three files: index.esm.js, index.js. and route.umd.js

I don't know to fix this with the ziggy routing.

Please help anyone.

marcel84014
marcel84014
0
3
110
alex
alex
Moderator
Solution

Hey Marcel. Ziggy recently got a version update, and you should now import it like this:

import { ZiggyVue } from '../../vendor/tightenco/ziggy';

Let me know if that doesn't work and I'll see what else may be the issue.

marcel84014
marcel84014

Thanks! now it works!

alex
alex
Moderator

Awesome, glad to hear that!