question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't navigate away after hitting error page

See original GitHub issue

Describe the bug

  1. setup an error page
  2. navigate to localhost:3000/foobar and see the error page
  3. try to click any links to navigate to a different page,
  4. see the error page persist

see 40 second bug report: https://loom.com/share/1c2706a6904b4b4fb506d8510b97826f

To Reproduce

repo: https://github.com/sw-yx/sveltekit-errornavigation-bugreport

40 second bug report: https://loom.com/share/1c2706a6904b4b4fb506d8510b97826f

Expected behavior

it should navigate away nicely to the new page

Stacktraces

when i navigate to the new page i get this error in the browser console

Stack trace
start.js:429 Uncaught (in promise) TypeError: Cannot read property 'path' of null
    at Renderer.notify (start.js:429)
    at Router._navigate (start.js:191)
    at start.js:117

Information about your SvelteKit Installation:

  • The output of npx envinfo --system --npmPackages svelte,@sveltejs/kit --binaries --browsers

  System:
    OS: macOS 11.0.1
    CPU: (8) x64 VirtualApple @ 2.50GHz processor
    Memory: 28.27 MB / 8.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.5.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 7.3.0 - /usr/local/bin/npm
  Browsers:
    Chrome: 89.0.4389.90
    Firefox: 84.0.2
    Safari: 14.0.1
  npmPackages:
    @sveltejs/kit: next => 1.0.0-next.55 
    svelte: ^3.29.0 => 3.35.0 

  • Your browser: chrome

  • Your adapter (e.g. Node, static, Vercel, Begin, etc…): N/A

Severity How severe an issue is this bug to you? Is this annoying, blocking some users, blocking an upgrade or blocking your usage of SvelteKit entirely?

minor

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:15
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
legowhalescommented, Mar 30, 2021

I confirm, I have the same error. And for me, the issue seems to be within the navigator store : this.current.page does not exist anymore, after navigating to an error page.

0reactions
janoshcommented, Jul 5, 2021

Maybe there are cache issues involved? In any case, combing back to it now, the problem seems to have disappeared.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer - Protocol error (Page.navigate): Target closed
Most likely, you are seeing this message because you closed the tab/browser and are still trying to use the resource. To give an...
Read more >
How To Fix the Firefox "The Page Isn't Redirecting Properly ...
1. Clear Your Browser Cache ... The first action you should take when encountering pretty much any error is to clear your Firefox...
Read more >
How To Find & Fix 404 Errors On Your Website | Matthew Edgar
There are five possible solutions you can use to fix 404 not-found errors on your website.
Read more >
What Is a 404 Error? How to Deal With the Web Error
What's happening is simply that your browser is asking a website to display something, the website can't find the right page to display,...
Read more >
Error 404: 4 Ways to Fix It - Hostinger
Therefore, you keep seeing the error even when the website works for ... On the Hosting Account panel, scroll down to Other and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found