themesberg / flowbite-datepicker

A Tailwind CSS datepicker built with vanilla JavaScript
https://flowbite.com/docs/components/datepicker/
MIT License
137 stars 41 forks source link

NPM import does not work in Laravel 9.19 #6

Open anddns opened 1 year ago

anddns commented 1 year ago

It works normally through CDN links but it does not work when I try to import it through npm. I followed the installation instructions, download and add the import declaration in "app.js", with the other packages, but I keep getting "Uncaught ReferenceError: Datepicker is not defined at :1:1".

My development environment is Laravel 9.19 and has Boxicons and Flowbite, both installed the same way and they work normally.

Marthianfred commented 1 year ago

i have same problem