Skip to content

From [email protected] an error with svelte-flatpickr. Works with 264.Β #78

@frederikhors

Description

@frederikhors

From [email protected] 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)

I opened sveltejs/svelte#13605 too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions