Svelte: Svelte update (3.5.1 > 3.5.2) and BOOOM! (problems, not joys)

Created on 19 Jun 2019  Â·  9Comments  Â·  Source: sveltejs/svelte

Taking https://codesandbox.io/s/reverent-tesla-c0kq0 from https://github.com/lukeed/navaid/issues/13.

FIRST PROBLEM

I cannot navigate anymore.

Until 3.5.1 you can navigate like this:

  1. Being in Home ("/")
  2. click on "Go to Teams Page" ("/teams")
  3. click on "Go to Team 1 Page" ("team/1")

With 3.5.2 you can't.

You can do 1 and 2 but at the step 3 you see nothing.

If you are on the page "team/1" and reload using codesandbox's preview icon it works.

SECOND PROBLEM

In one of my projects the error is even more frightening:

TypeError: Cannot read property '$$' of undefined
bug

Most helpful comment

Fixed in 3.6.0! thanks

All 9 comments

The problem _is_ the "second problem" – that runtime error appears, killing the route/display.

The error appears in two forms:

function flush() {
    const seen_callbacks = new Set();
    do {
        // first, call beforeUpdate functions
        // and update components
        while (dirty_components.length) {
            const component = dirty_components.shift();
            set_current_component(component);
            update(component.$$); //<~ here
        }
        // ...
}

And here:

i: function intro(local) {
      if (current) return;
      (0, _internal.transition_in)(switch_instance.$$.fragment, local);
      current = true;
    },

They both seem to stem from a transition_in

function transition_in(block, local) {
    if (block && block.i) {
        outroing.delete(block);
        block.i(local);
    }
}

Can you try with v3.5.3?

I just tried it — still broken

Am I right in thinking this was Navaid-related, and is fixed with Navaid 1.0.5?

Nope 😬 still happens with latest versions of each

Fixed in 3.6.0! thanks

Fixed in 3.6.0! thanks

Thanks only to you actually.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noypiscripter picture noypiscripter  Â·  3Comments

Rich-Harris picture Rich-Harris  Â·  3Comments

1u0n picture 1u0n  Â·  3Comments

mmjmanders picture mmjmanders  Â·  3Comments

Rich-Harris picture Rich-Harris  Â·  3Comments