Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception on destruct #18

Closed
Brandon2255p opened this issue Jan 21, 2021 · 2 comments
Closed

Unhandled exception on destruct #18

Brandon2255p opened this issue Jan 21, 2021 · 2 comments

Comments

@Brandon2255p
Copy link

Hi there I am unable to "destruct" this component..
A simple example is if I use a show flag

<div on:click={() => (show = false)}>
  {#if show}
    <ProgressBar {series} width="100%" textSize={0} />
  {/if}
  <p>Prep {prep}% | Grow {grow}% | Flower {flower}% | Finalise {finalise}%</p>
</div>

When you click then it gives this stacktrace into the progressbar:

Uncaught (in promise) TypeError: Cannot read property 'c' of undefined
    at D (index.mjs:1)
    at Object.o (index.mjs:1)
    at transition_out (index.mjs:817)
@Brandon2255p
Copy link
Author

sveltejs/svelte#3165

@okrad
Copy link
Owner

okrad commented Jan 29, 2021

Thank you @Brandon2255p,
I'm looking into it, I'll let you know asap!

@okrad okrad mentioned this issue Feb 23, 2021
@okrad okrad closed this as completed Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants