Open tangyi90 opened 3 weeks ago
Hi! I think we are going to need more info here.
Are you using different script
tags to import components and different to initialize the Modal? If this is the case then the second script doesn't know about the imported modal from other scripts. You have to import it in the second one aswell
"tw-elements": "^2.0.0",
import { Input, Tab, Carousel, Offcanvas, Collapse, Dropdown, Tooltip, Modal, Ripple, initTWE } from 'tw-elements'; initTWE({ Input, Tab, Carousel, Offcanvas, Collapse, Dropdown, Tooltip, Modal, Ripple });