Skip to content

Svelte 5: animation not triggered when component imported from index #13645

@alex-pirogov

Description

@alex-pirogov

Describe the bug

Both lines are the same component. The difference is that the first one uses import from index.ts file and the 2nd uses direct import from .svelte file

CleanShot.2024-10-17.at.15.07.55.mp4

Reproduction

I've created a demo project as i was not able to reproduce it in REPL: https://github.com/alex-pirogov/svelte-5-comp/blob/master/src/routes/%2Bpage.svelte

Logs

No response

System Info

System:
    OS: macOS 14.4.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 373.69 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.7.0 - /opt/homebrew/bin/node
    npm: 10.8.2 - /opt/homebrew/bin/npm
    pnpm: 9.12.1 - ~/Library/pnpm/pnpm
    bun: 1.1.3 - ~/.bun/bin/bun
  Browsers:
    Chrome: 129.0.6668.103
    Safari: 17.4.1
  npmPackages:
    svelte: 5.0.0-next.268 => 5.0.0-next.268

Severity

annoyance

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