Skip to content
Discussion options

You must be logged in to vote

This matches a known, still open Nitro bug rather than anything specific to the OpenAPI generator or the project setup. nitrojs/nitro#4295 documents the exact same error and stack trace (ViteEnvRunner.fetch throwing Vite environment "ssr" is unavailable from dev-worker.mjs).

The root cause described there: ViteEnvRunner.fetch waits for the SSR entry module to finish importing, but only retries 5 times with exponential backoff, roughly 100+200+400+800+1600ms, about 3.1 seconds total. On a project where the SSR entry's first cold transform takes longer than that (larger dependency graphs, slower disk access, which Windows tends to be more prone to than macOS/Linux for cold node_modules read…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JosefStanek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants