Install NPM library

Hi, guys. I am using a custom page and I want to use Tailwind Datepicker. I installed it with npm but I don't know where to put this import "import Datepicker from 'flowbite-datepicker/Datepicker';" in order to work. I put it in app.js but it doesn't work
2 Replies
LeandroFerreira
Filament
Appearance - Admin Panel - Filament
The elegant TALL stack admin panel for Laravel artisans.
DianaMujoiu
DianaMujoiuOP2y ago
I tried to use FilamentRegisterScripts() but I got this error "app.js:1 Uncaught SyntaxError: Cannot use import statement outside a module (at app.js:1:1)"
Want results from more Discord servers?
Add your server