-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Vitest and AstroContainer throw error after 4.13.3 #11906
Comments
I overlooked that my local project uses the latest version of Node. |
This is because Node 18 doesn't have crypto globally available, Astro normally applies polyfill for this, but it seems like they don't apply correctly here. Updating to Node 20 or later would workaround the issue. |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
The attached stackblitz example works till astro v
4.13.3
. When upgrading to4.13.4
or higher, the vitest are throwing this error:Reproduction Steps
astro
version to4.13.4
or higher (latest working version is4.13.3
)npm install
npm test
What's the expected result?
The tests are working again and/or docs are updated 👼
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-dpyy1r?file=package.json
Participation
The text was updated successfully, but these errors were encountered: