Skip to content

From svelte@5.0.0-next.265 an error with svelte-flatpickr. Works with 264. #13605

@frederikhors

Description

@frederikhors

From svelte@5.0.0-next.265 I'm getting an error with svelte-flatpickr. Works with 264.

Uncaught TypeError: Cannot read properties of undefined (reading 'destroy')
    at svelte-flatpickr.js?v=4fcee8e0:2439:11
    at chunk-W6O5AMDL.js?v=4fcee8e0:2434:11
    at execute_effect_teardown (chunk-4UFHU26X.js?v=4fcee8e0:2042:17)
    at destroy_effect (chunk-4UFHU26X.js?v=4fcee8e0:2073:3)
    at destroy_effect_children (chunk-4UFHU26X.js?v=4fcee8e0:774:5)
    at destroy_effect (chunk-4UFHU26X.js?v=4fcee8e0:2064:3)
    at destroy_effect_children (chunk-4UFHU26X.js?v=4fcee8e0:774:5)
    at destroy_effect (chunk-4UFHU26X.js?v=4fcee8e0:2064:3)
    at destroy_effect_children (chunk-4UFHU26X.js?v=4fcee8e0:774:5)
    at destroy_effect (chunk-4UFHU26X.js?v=4fcee8e0:2064:3)
Show 62 more frames

here:

image

Reproduction

I'm able to reproduce the issue this way only:

  • Open this svelte-dev REPL project

  • Wait to it to be loaded

  • Open the browser's console

  • Comment out the first line (the CSS import)

  • See in the browser's console the error

This is the only way to reproduce the error on a SvelteKit / Svelte 5 project I'm currently working on (the error shos up when I navigate pages)

Severity

blocking an upgrade

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions