Skip to content

error no matching export current_component - svelte 5 and sveltekit ^2.0 #10275

Closed

Description

@JonathonRP

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

latest

Framework Version

svelte 5, sveltekit 2

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

svelte version ^5 and sveltekit ^2
install by guide, run dev.

Expected Result

no error message

Actual Result

error message - `No matching export in 'svelte' for import 'current_component'

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Jan 19, 2024
  2. Lms24 commented on Jan 23, 2024

    @Lms24
    Member

    Hi @JonathonRP I believe this issue is related to our component tracking feature not working well with SvelteKit 2 / Svelte 5. It's something we need to look into but I believe the root cause is ultimately the same as in #10276

    Can you confirm that your setup is identical in both issues? Or did you change something to get around one of the two errors you reported?

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Jan 23, 2024
  4. moved this to Waiting for: Community in GitHub Issues with 👀 2on Jan 23, 2024
  5. JonathonRP commented on Jan 23, 2024

    @JonathonRP
    ContributorAuthor

    @Lms24 setup for this is without disabling tracking withSentryConfig. As component tracking is on by default which I was attempting to work around by disabling but found that had errors no matter the route I took. I tried both svelte browser version and sveltekit version.

  6. moved this from Waiting for: Community to Waiting for: Product Owner in GitHub Issues with 👀 2on Jan 23, 2024
  7. JonathonRP commented on Jan 23, 2024

    @JonathonRP
    ContributorAuthor
  8. 61 remaining items

  9. JonathonRP commented on Mar 5, 2024

    @JonathonRP
    ContributorAuthor

    @Lms24 has this been merged or released yet?

  10. moved this to Waiting for: Product Owner in GitHub Issues with 👀 2on Mar 5, 2024
  11. lforst commented on Mar 7, 2024

    @lforst
    Contributor

    @JonathonRP The SDK does not yet support svelte 5. Progress is tracked here #10318.

  12. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 2on Mar 7, 2024
  13. Lms24 commented on Apr 26, 2024

    @Lms24
    Member

    Hey everyone, I just merged #11807 which auto-closed this issue. We'll make a new beta release for v8 of our SDK on Monday which will ship with support for Svelte 5 (compatible with the latest Svelte 5 preview)!

    Thanks for your patience and special shout out to @JonathonRP for setting the ground stone by porting our Svelte SDK tests from Jest to Vitest (#10350)!

  14. JonathonRP commented on Apr 29, 2024

    @JonathonRP
    ContributorAuthor

    Hey everyone, I just merged #11807 which auto-closed this issue. We'll make a new beta release for v8 of our SDK on Monday which will ship with support for Svelte 5 (compatible with the latest Svelte 5 preview)!

    Thanks for your patience and special shout out to @JonathonRP for setting the ground stone by porting our Svelte SDK tests from Jest to Vitest (#10350)!

    Is this still releasing today?

  15. JonathonRP commented on Apr 30, 2024

    @JonathonRP
    ContributorAuthor

    @Lms24 I have upgraded to beta, but do I also need svelte package at new beta? I'm trying today with only sveltekit on beta and getting build errors for performance.js access current_component...

    Actually for some reason pnpm installed latest and not next tag version

  16. JonathonRP commented on May 1, 2024

    @JonathonRP
    ContributorAuthor

    @Lms24 I'm using spotlight and getting error that a is not a function... that's seems to come from using spotlight and sentry, it's inside Browserclient.addIntegration, setupIntegration, gw.setupOnce

    I could also make another issue for this, if you like?

  17. lforst commented on May 2, 2024

    @lforst
    Contributor

    @JonathonRP Yes please open another issue with reproduction steps. Thank you!

  18. Lms24 commented on May 2, 2024

    @Lms24
    Member

    @JonathonRP sorry for the late response; I'm currently out sick and just saw this. Before you open another issue, please try upgrading to the Spotlight 2.x alpha. Since you're using v8 of the Svelte(kit) SDK, Spotlight needs to be update to its new major as well. More information here: https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs%2Fspotlight%402.0.0-alpha.1

  19. JonathonRP commented on May 2, 2024

    @JonathonRP
    ContributorAuthor

    @JonathonRP sorry for the late response; I'm currently out sick and just saw this. Before you open another issue, please try upgrading to the Spotlight 2.x alpha. Since you're using v8 of the Svelte(kit) SDK, Spotlight needs to be update to its new major as well. More information here: https://github.com/getsentry/spotlight/releases/tag/%40spotlightjs%2Fspotlight%402.0.0-alpha.1

    I'll give that a try, thanks!

  20. ghost added on Aug 12, 2025
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

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions