Skip to content

Import error: Nabar Example #1904

Description

@InvalidLenni

Description

I'm trying to import

<script lang="ts">
    import { Navbar, NavBrand, NavLi, NavUl, NavHamburger, Avatar, Dropdown, DropdownItem, DropdownHeader, DropdownGroup } from "flowbite-svelte";
</script>

but it doen't work, it says

Svelte: Module '"flowbite-svelte"' has no exported member 'Navbar'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavBrand'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavLi'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavUl'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavHamburger'.
Svelte: Module '"flowbite-svelte"' has no exported member 'Avatar'.
Svelte: Module '"flowbite-svelte"' has no exported member 'Dropdown'.
Svelte: Module '"flowbite-svelte"' has no exported member 'DropdownItem'.
Svelte: Module '"flowbite-svelte"' has no exported member 'DropdownHeader'.
Svelte: Module '"flowbite-svelte"' has no exported member 'DropdownGroup'.

Minimal Reproduction

https://flowbite-svelte.com/docs/components/navbar

Steps to Reproduce

You need to create a +page.svelte file (in normal case its already created - default file) and then copy paste these things, i posted above.

Environment

System:
    OS: Windows 11 10.0.26100
    CPU: (12) x64 AMD Ryzen 5 5600G with Radeon Graphics
    Memory: 1.48 GB / 13.90 GB
  Binaries:
    Node: 24.12.0 - C:\Program Files\nodejs\node.EXE
    npm: 11.6.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 10.27.0 - C:\Users\Administrator\AppData\Local\pnpm\pnpm.CMD
  Browsers:
    Edge: Chromium (143.0.3650.96)

Relevant Logs / Console Output

Svelte: Module '"flowbite-svelte"' has no exported member 'Navbar'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavBrand'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavLi'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavUl'.
Svelte: Module '"flowbite-svelte"' has no exported member 'NavHamburger'.
Svelte: Module '"flowbite-svelte"' has no exported member 'Avatar'.
Svelte: Module '"flowbite-svelte"' has no exported member 'Dropdown'.
Svelte: Module '"flowbite-svelte"' has no exported member 'DropdownItem'.
Svelte: Module '"flowbite-svelte"' has no exported member 'DropdownHeader'.
Svelte: Module '"flowbite-svelte"' has no exported member 'DropdownGroup'.

Screenshots / GIF (optional)

No response

Additional Context (optional)

No response

Checklist

  • I have searched existing issues and discussions
  • I have provided a minimal and runnable reproduction
  • I am using the latest version of Flowbite-Svelte

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions