Importing single component still imports everything #527
Unanswered
joshkennedy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We're updating a legacy Rails app to use Flowbite and I'm replacing components one-by-one, rather than overhauling everything in one go.
For now, all I want to bring in is the Drawers, so I have
The side nav drawer is working as expected, but I'm seeing errors in my console related to missing modals:
Modal with id overlay does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?.
We have a custom Stimulus
modal-controller
that usesdata-modal-target
values that I need to remain functional for the time being.Looking at my esm build file, I'm seeing all the Flowbite components are being brought in.
Any ideas as to why the import of only the Drawer is still bringing in everything? Is there a way to only bring in components piecemeal?
Beta Was this translation helpful? Give feedback.
All reactions