-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot read properties of undefined (reading 'fallthrough') #5750
Comments
@rogadev I cannot access your repository. Please check that it's accessible in an incognito window |
Apologies. Give it a go, now. |
I haven't had my coffee - I didn't mean to close that. 🤦♂️ |
Here it is. I made a noob error and didn't actually do anything with the object I created inside the return await Promise.all([p1, p2]).then((results) => {
return {
status: 200,
body: {
noc,
title: results[1].title,
jobs: results[1].jobs,
requirements: results[1].requirements,
duties: results[1].duties,
outlook: results[0].outlook,
outlook_verbose: results[0].outlook_verbose,
trends: results[0].trends,
province: 'British Columbia',
eruid: 5900,
},
}
}) HOWEVER, I would still argue that the error messaging needs work. The way I finally figured out what was going on was this little squiggle at the top of my file which I never even noticed. This finally nudged me to realize that I was just resolving all the promises and then doing absolutely nothing with what that I hope this is somewhat helpful feedback... 🤷♂️ |
Describe the bug
I implemented a
Promise.all()
in a shadow endpoint that hits 2 different external API endpoints before it combines and returns the data. While the app doesn't seem to be breaking, I am getting the following error in my console when running in development.Reproduction
https://github.com/rogadev/viu-fe/tree/for-svelte-bug
Logs
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: