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

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'tick') #7904

Closed
brunocalou opened this issue Sep 30, 2022 · 3 comments

Comments

@brunocalou
Copy link

Describe the bug

Sometimes when I perform fast actions, Svelte throws a TypeError exception and stops working. The state never gets updated again and a page refresh is needed.

From the debugger, It happens on the create_out_transition function. The tick property cannot be accessed because config object is undefined.

Captura de Tela 2022-09-29 às 21 34 36

Reproduction

https://svelte.dev/repl/a319a067d66e4b26b677ae94db22261c?version=3.31.0

Click on the "Move fast" button many times. It will eventually break.

Logs

Error: Uncaught (in promise): Cannot read properties of undefined (reading 'tick')
message: "Uncaught (in promise): Cannot read properties of undefined (reading 'tick')"
stack: "TypeError: Cannot read properties of undefined (reading 'tick')\n" +
" at Object.end (eval at handle_message (about:srcdoc:14:8), <anonymous>:487:37)\n" +
" at eval (eval at handle_message (about:srcdoc:14:8), <anonymous>:981:40)\n" +
" at flush (eval at handle_message (about:srcdoc:14:8), <anonymous>:306:21)"

System Info

System:
    OS: macOS 11.6.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 2.31 GB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
    npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm
  Browsers:
    Brave Browser: 104.1.42.97
    Chrome: 105.0.5195.125
    Firefox: 103.0.2
    Safari: 14.1.2
  npmPackages:
    svelte: ^3.50.1 => 3.50.1

Severity

annoyance

@brunocalou
Copy link
Author

I can open a PR on the weekend 👍

@amjadorfali
Copy link

I'm having a similar issue with the out transition.

I'm basically using a Media Query to show a different Menu (one for mobile and one for desktop)

The desktop version has a menu with some animations, including an out animation.

The issue is basically when the component is trying to call out, when it's being unmounted, it's throwing this tick error.

Any ideas when it would be fixed ?

This is making both menus crash and disappear completely, unless i refresh

@baseballyama
Copy link
Member

Error: Uncaught (in promise): Cannot read properties of undefined (reading 'tick')
This issue is fixed since 3.40.3 by this PR #6516

Then sometimes 3.40.3 occur below error.
Error: Cannot read properties of null (reading 'removeChild')
But it has also been fixed since 3.53.0.
#6910

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.

3 participants