flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Dismiss import does not work in Vue 3 + Vite app

Open jlariza opened this issue 1 year ago • 0 comments

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:

  1. Create a Vue 3 + Vite app
  2. Install and configure flowbite according to the setup instructions
  3. Try adding import { Dismiss } from 'flowbite'; in App.vue script setup
  4. See error

Expected behavior It should import the Dismiss class according to https://flowbite.com/docs/components/alerts/#example

jlariza avatar May 30 '23 02:05 jlariza