You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line (const { createServeAndBuild } = await import(`./checkers/${name}/main.js\`)) appears exactly like that in the CJS build. As soon as this line is executed, the whole process tree just explodes and quits. (Is it uncompiled? Doesn't Node.js in CJS mode not support await import()? Or am I outdated?)
Reproduction
Using Node 20.2.0, use any Vite version with the repo configured as CommonJS (no "type": "module"in package.json)
Describe the bug
This line crashes the build.
The line (
const { createServeAndBuild } = await import(`./checkers/${name}/main.js\`)
) appears exactly like that in the CJS build. As soon as this line is executed, the whole process tree just explodes and quits. (Is it uncompiled? Doesn't Node.js in CJS mode not supportawait import()
? Or am I outdated?)Reproduction
Using Node 20.2.0, use any Vite version with the repo configured as CommonJS (no
"type": "module"
inpackage.json
)Expected behavior
Build runs to completion.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: