Dev server error: ReferenceError: module is not defined
(node_modules/cssesc/cssesc.js:73:1
)
#12229
Labels
- P2: has workaround
Bug, but has workaround (priority)
feat: view transitions
Related to the View Transitions feature (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When
vite.ssr.noExternal = true
is set, no page can be accessed from the dev server. Production build is not impacted.What's the expected result?
vite.ssr
has no effect on the dev server. Alternatively,cssesc
-related issues only arise when its code is needed (i.e., in projects using view transitions), orcssesc
can be detected as a commonjs module and be transpiled appropriately.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-jdp8df?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: