Replies: 2 comments
-
in my app.js file I have tried to import it after npm installing flatpickr `import './bootstrap'; import Alpine from 'alpinejs'; Alpine.plugin(mask); window.Alpine = Alpine; Alpine.start(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Resolved my issue with following the upgrade steps here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I've recently upgraded from Laravel 9 -> 10 and after that upgraded to Vite instead of Mix.
Now the JS doesn't load. I realize this is my lack of understanding front-end JS loading in general, but any help would be appreciated.
Is there anything special I need to do to get Vite to load the FlatPicker?
Error:
app.51a8cc10.js:28 Alpine Expression Error: pgFlatPickr is not defined
Expression: "pgFlatPickr({
dataField: 'transaction_date',
tableName: 'default',
filterKey: 'enabledFilters.date_picker.transaction_date',
label: 'Trans Date',
locale: null,
onlyFuture: false,
noWeekEnds: false,
customConfig: []
})"
Beta Was this translation helpful? Give feedback.
All reactions