toolkit: Including toolkit plugin throws error
I am using the toolkit with Alpine 3.10.2
like this
import Alpine from 'alpinejs'
import Toolkit from '@alpine-collective/toolkit'
import GLightbox from 'glightbox';
import $ from 'jquery';
import 'slick-carousel';
Alpine.plugin(Toolkit)
Alpine.start()
but I am getting an error on the console saying
Uncaught TypeError: e is not a function
plugin https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
218 https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
n https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
<anonymous> https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
O https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
<anonymous> https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
<anonymous> https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745:2
[site.js:2:24366](https://villa-brocante-statamic.test/js/site.js?id=6a69235128732592cb4494ded2351745)
This happens with yarn run production
.
When running yarn run dev
I get this error
which leads me to this place
Any idea what is wrong there?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (2 by maintainers)
Fixed in 1.0.2
Having the same issue. not sure how to fix it: