Closed Sogl closed 3 years ago
A FEW MOMENTS LATER
I found ZiggyVue
definition here:
https://github.com/tighten/ziggy/blob/main/src/js/index.js
But not in 1.1.0
version:
https://github.com/tighten/ziggy/blob/v1.1.0/src/js/index.js
So I downloaded a latest version from repo:
composer require tightenco/ziggy:dev-main
and changed my webpack.mix.js
to:
mix.alias({
ziggy: path.resolve('vendor/tightenco/ziggy/src/js/index'),
});
Now it works fine! Maybe need to update version and documentation?
The README file is confusing right now, it doesn't correspond current release. See this PR for details.
Yeah sorry about this, the Vue plugins haven't actually been released yet because of some build issues. I'm hoping to get to it this week!
@Sogl thank you for updating this I ran into same issue today.
Should now be fixed in v1.2.0!
works great with
mix.alias({
ziggy: path.resolve("vendor/tightenco/ziggy/dist/vue")
});
// or 'vendor/tightenco/ziggy/dist/vue' if you're using the Vue plugin
is slightly hidden in the documentation
thank you @bakerkretzmar
Ziggy version
1.1.0
Laravel version
6.20.27
Description
I was on ziggy 0.7.1 and used this instruction: https://github.com/tighten/ziggy/issues/154#issuecomment-494563621
Just updated to 1.1.0 and get this message in console:
Steps:
webpack.mix.js
:const path = require('path');
mix.alias({ ziggy: path.resolve('vendor/tightenco/ziggy/dist'), });
What I'm missing?
Ziggy call and context
Ziggy configuration
Route definition