flowbite
flowbite copied to clipboard
Dismiss import does not work in Vue 3 + Vite app
Describe the bug
When adding import { Dismiss } from 'flowbite';
to <script setup>
script, console returns the following error
caught SyntaxError: The requested module '/node_modules/.vite/deps/flowbite.js?v=a9f96e8c' does not provide an export named 'default'
To Reproduce Steps to reproduce the behavior:
- Create a Vue 3 + Vite app
- Install and configure flowbite according to the setup instructions
- Try adding
import { Dismiss } from 'flowbite';
inApp.vue
script setup - See error
Expected behavior
It should import the Dismiss
class according to https://flowbite.com/docs/components/alerts/#example