Skip to content

"ReferenceError: cn is not defined" in pnpm + turbo setup #50

@fourhundredfour

Description

@fourhundredfour

When using the icons in a monorepo setup with pnpm and Turborepo, the following error occurs when visiting the page where the icon is loaded. This may be due to a missing export, but the cause could also be something else entirely.

Reproduction

Set up Svelte App with pnpm and Turborepo, install flowbite-svelte-icons, integrate any icon, start Dev Server

Info

  System:
    OS: macOS 26.0.1
    CPU: (14) arm64 Apple M3 Max
    Memory: 1.86 GB / 36.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.16.0 - /opt/homebrew/bin/node
    npm: 11.5.2 - /opt/homebrew/bin/npm
    pnpm: 10.14.0 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 141.0.7390.123
    Safari: 26.0.1
  npmPackages:
    @sveltejs/kit: 2.36.1 => 2.36.1
    flowbite-svelte: ^0.48.0 => 0.48.6
    flowbite-svelte-icons: 3.0.0 => 3.0.0
    svelte: 5.40.1 => 5.40.1
    vite: 7.1.10 => 7.1.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot-reproduceAttempts to reproduce the issue were unsuccessful. More information or context is required.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions