Flatpickr - Laravel
I'm having trouble implementing Flatpickr in my form, it says :
Uncaught TypeError: $(...).flatpickr is not a function
Metronic Version 8.0.38
already on mixmanifest.json "/demo1/plugins/custom/flatpickr/flatpickr.bundle.js": "/demo1/plugins/custom/flatpickr/flatpickr.bundle.js",
I already tried the following
If you’re using a bundler, e.g. webpack, you’ll need to import flatpickr.
const flatpickr = require("flatpickr");
// es modules are recommended, if available, especially for typescript
import flatpickr from "flatpickr";
as the documentation mentions (https://flatpickr.js.org/getting-started/)
can someone support me?
Sorry for the delay.
The file should be there, public/demo1/plugins/custom/flatpickr/flatpickr.bundle.js
But you have to include it on your page.
For example using page config;
'assets' => array(
'custom' => array(
'js' => array(
'test' => [
'title' => 'Test',
'assets' => [
'custom' => [
'css' => [
'js' => [
This does not work need urgent help,
i am trying to call flatpicker form the test.js