-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: Build fails when outDir (other than the default) does not exist #126
base: main
Are you sure you want to change the base?
Conversation
|
Run & review this pull request in StackBlitz Codeflow. @qwikdev/create-astro (
|
I have been using the latest pkg pr new url's in the action to debug this in a consumer project. we can get the build and dev mode working, but preview will fail with the following error: > serve
> node ./dist/server/entry.mjs
node:internal/modules/cjs/loader:1146
throw err;
^
Error: Cannot find module '/Users/jackshelton/dev/playground/test-outdir/dist/server/entry.mjs'
at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
at Module._load (node:internal/modules/cjs/loader:984:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v20.12.2 It also creates a folder named dist inside of our custom outDir, which doesn't make any sense. |
fixes #74