Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

No async data on root index.html after getting error #450

Closed
antoineneff opened this issue Sep 25, 2018 · 2 comments
Closed

No async data on root index.html after getting error #450

antoineneff opened this issue Sep 25, 2018 · 2 comments

Comments

@antoineneff
Copy link

If the root index.html file (routes/index.html) has some async data in its preload method (returning a promise or using async/await), the page won't reload after getting an error from this.error, the error layout is still showing up.

I'm getting 3 errors in the browser console when trying going back to / route :

TypeError: "each_value is undefined"
TypeError: this.proxyTarget is undefined (x2)

To reproduce, you can copy the routes/blog/index.html from sapper template to routes/index.html, get an error navigating to an invalid route and trying to go back on home from navigation. I did that on that repo : https://github.com/antoineneff/sapper-error-repro

Feel free to ask if you need further information.

@antoineneff antoineneff changed the title No async data after getting error on root index.html No async data on root index.html after getting error Sep 25, 2018
@sgametrio
Copy link

Same bug here.
I'll link here issue I opened on sapper-template too

@Conduitry
Copy link
Member

Should be fixed by #620.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants