-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
dist/server does not get created upon npm run build #13296
Comments
This does include "server" after build but it does not translate to Vercel.
The tail end of the build message:
If i try and make a commit with it, the build log within vercel outputs this:
|
Your minimal reproduction is just the basics example, not an actual reproduction. You need to update it with what causes the issue (or make a new public repo if you prefer) |
Hello @eduardonwa. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
heres the repo: https://github.com/eduardonwa/noserverastro tried to deploy it yet again to vercel and got the same response. added a readme with more detail about the problem. repo uses node18 as that's the version vercel supports (my dashboard also uses this version) vercel url: https://gojira-psi.vercel.app/ error log of this repo:
|
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Everytime i make a commit to Github and Vercel tries to deploy the Astro project, Vercel fails because the adapter misses to create the "server" folder inside the dist
Logs say this:
What's the expected result?
I should be able to see the entire project live because the astro config complies exactly with everyting I've researched and it should be a working device.
I've tried several combinations but the one docs stick to is this:
Have tried the following:
As i understand it, whenever i run a local build Astro should generate 2 folders inside the dist, "server" and "client" but this does not happen so everytime Vercel wants to build the application it fails to find "entry.mjs" which should be inside dist/server.
Researching the ERR_MODULE_NOT_FOUND problem, i've found is dealt by specifying the file extension when one is importing a file. For example, instead of importing "astro", it should be "astro.js"
Since this is happening outside of my application, at build time/when it gets deployed, I feel this is out of my reach and cannot do much about that entry.mjs file other than to switch the path to it somewhere.
I don't think the reproducible example is of any worth since you would need to deploy it to Vercel but its there as it was mandatory.
Link to Minimal Reproducible Example
https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics?file=astro.config.mjs
Participation
The text was updated successfully, but these errors were encountered: