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

Animation without Transition: TypeError: Cannot read property 'callbacks' of undefined #2908

Closed
Harald-1 opened this issue May 30, 2019 · 2 comments · Fixed by #2909
Closed

Comments

@Harald-1
Copy link
Contributor

Unfortunately, I found another bug. Steps to reproduce:

  • Take 11.a "The animate directive" from the tutorial (https://svelte.dev/tutorial/animate)
  • Remove the transitions and just leave the animation
  • Tick or remove a todo from the list
  • See the exception on the console:
Uncaught (in promise) TypeError: Cannot read property 'callbacks' of undefined
    at on_outro (eval at handle_message (about:srcdoc:13), <anonymous>:288:16)
    at outro_and_destroy_block (eval at handle_message (about:srcdoc:13), <anonymous>:296:9)
    at fix_and_outro_and_destroy_block (eval at handle_message (about:srcdoc:13), <anonymous>:303:9)
    at update_keyed_each (eval at handle_message (about:srcdoc:13), <anonymous>:354:17)
    at Object.update [as p] (eval at handle_message (about:srcdoc:13), <anonymous>:869:24)
    at update (eval at handle_message (about:srcdoc:13), <anonymous>:281:25)
    at flush (eval at handle_message (about:srcdoc:13), <anonymous>:256:17)

Here is the REPL: https://svelte.dev/repl/405d24c6f8414e528c67596fc8f382f1

I'll provide a fix (pull request) shortly. 😉

Harald-1 added a commit to Harald-1/svelte that referenced this issue May 30, 2019
Harald-1 added a commit to Harald-1/svelte that referenced this issue May 30, 2019
This reverts commit 6e9f918.
Harald-1 added a commit to Harald-1/svelte that referenced this issue May 30, 2019
@Harald-1 Harald-1 mentioned this issue May 30, 2019
@Harald-1
Copy link
Contributor Author

I am sorry for the superfluous commits, I forgot to branch before committing. 🙈

@davidcallanan
Copy link

davidcallanan commented Feb 21, 2020

I'm getting a cannot read property '_callbacks' of undefined using sveltenative textLayout.

Likely an issue with sveltenative but just commenting here because it's a similar problem.

EDIT: seems to happen every second liveupdate, probably sveltenative problem

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

Successfully merging a pull request may close this issue.

2 participants