Skip to content

Component not defined #13180

@Arashm-2009

Description

@Arashm-2009

Describe the bug

I was trying to use ts in my components with svelte 5 but it doesn't work and is says Button (my component) is not defined. When I stripped my project of ts, it was working.

Reproduction

https://replit.com/@arashmahipal/Svelte-Bug?v=1

Code for page.svelte (doesn't show when I open the link)

<script> import Dashboard from "$lib/Dashboard.svelte"; </script>

<Dashboard content={"Hello"} />

Logs

No response

System Info

System:
    OS: macOS 14.2.1
    CPU: (8) arm64 Apple M1
    Memory: 145.47 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    npm: 10.8.3 - ~/.nvm/versions/node/v20.16.0/bin/npm
  Browsers:
    Safari: 17.2.1
  npmPackages:
    svelte: ^5.0.0-next.1 => 5.0.0-next.244

Severity

blocking an upgrade

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting submitterneeds a reproduction, or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions