Hello all I am trying to get Flatpickr working with Laravel v8.
I've done the following:
npm install flatpickr
then I added to the resources/app.js:
const flatpickr = require("flatpickr");
flatpickr("#myField", {});
in my view I have this defined:
<input id="myField" type="text" name="myField" value="2021-01-16 15:18:02">
But I get the following errors:
app.js:23902 Uncaught TypeError: flatpickr is not a function
at Object../resources/js/app.js (app.js:23902)
at __webpack_require__ (app.js:20)
at Object.0 (app.js:23945)
at __webpack_require__ (app.js:20)
at app.js:84
at app.js:87
I have no Ideas, how to proceed, tbh.