You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement modal example from your docs in my Rails 7 + Hotwired Stimulus + Flowbite (turbo) stack.
Here is my stimulus controller
import{Controller}from"@hotwired/stimulus"import{Modal}from'flowbite';exportdefaultclassextendsController{connect(){}showStoryItem(event){const$targetEl=event.target;// options with default valuesconstoptions={placement: 'bottom-right',backdrop: 'dynamic',backdropClasses: 'bg-gray-900 bg-opacity-50 dark:bg-opacity-80 fixed inset-0 z-40',closable: true,onHide: ()=>{console.log('modal is hidden');},onShow: ()=>{console.log('modal is shown');},onToggle: ()=>{console.log('modal has been toggled');}};constmodal=newModal($targetEl,options);modal.show();}}
When I open this page i'm getting error SyntaxError: The requested module 'flowbite' does not provide an export named 'Modal'
Flowbite js works on dropdowns and etc though
Can you help please?
The text was updated successfully, but these errors were encountered:
I'm trying to implement modal example from your docs in my Rails 7 + Hotwired Stimulus + Flowbite (turbo) stack.
Here is my stimulus controller
When I open this page i'm getting error
SyntaxError: The requested module 'flowbite' does not provide an export named 'Modal'
Flowbite js works on dropdowns and etc though
Can you help please?
The text was updated successfully, but these errors were encountered: