Check latest astro version fail cause astro render error page at first time visit. #11012
Closed
1 task done
Labels
needs triage
Issue needs to be triaged
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Astro cannot catch fetchLatestAstroVersion error when fetch failed, and it will create a error layout when first time fetch the page.
This bug may only appear in some country that cannot connect to npmjs.org normally.
It cannot reproduction in the stackblitz. I only can put some screenshots to show it.
The error will cause my test fail when I fetch the page first time.
Screenshots:
Stackblitz reproduction can follow this:
node_modules/astro/dist/cli/install-package.js
and letfetchPackageVersions
always return Error.node_modules/astro/dist/core/dev/dev.js#L31
and made shouldCheck totrue
.What's the expected result?
Expect cli do nothing, keep server run normally.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-82f59z
Participation
The text was updated successfully, but these errors were encountered: