-
-
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
Vercel is not working in a monorepo #4567
Comments
How is |
Sorry, this is not specifically nx problem but monorepo in general. I have updated the description and created a new github example without nx and I still get the same error. |
I can reproduce - I am using in a mono repo with NX - Astro 1.1.5 and I have the same issue - though I don't think it has anything to do with NX either:
I tried moving it in to |
I'm experiencing the same issue when I try to deploy from a github repo. When I deploy using the vercel CLI the function no longer produces the error message and the application starts working. I'm using the PNPM package manager. This is my package.json:
Here is my build logs:
|
I'm getting the same error when deploying to Vercel. Anyone got any updates on this? |
So this is a temporary workaround, but I was able to get it working by changing my install command to I believe that this due to some symlink weirdness when vercel copies deps to a |
We recently fixed hoisting, so this should be working in 1.4.0+! If you are still seeing the problem please file a new issue. |
@matthewp I'm facing the same error when I use astro and vercel adapter on a monorepo, i see that this conversation is closed but for me it's not clear how this was fixed, so please would be great a detailed explanation about it |
This issue persists with all the latest releases. Should not be closed. |
@nestorbfgo @prodkt the original poster hasn't replied, so we assume the issue is fixed. If you are still affected, please follow Matthew's advice and create a new issue. You never know that your issue is caused by something else. And, maybe, add a comment here with the link to the new issue as a follow up for other developers. |
@nestorbfgo @prodkt Have either of you created a separate issue? I'm having the same problem... |
What version of
astro
are you using?1.1.1
Are you using an SSR adapter? If so, which one?
@astrojs/vercel
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
When vercel has deployed I get
Vercel Build log
when i access the site https://astro-monorepo-vercel.vercel.app/.
It works locally, and vercel can deploy.
I am having the project in a sub directory. But this setup works with a svelte-kit project using the same Vercel config and vite config (@sveltejs/adapter-vercel).
I see the code in .vercel\output\functions\render.func\entry.js imports:
Link to Minimal Reproducible Example
https://github.com/snorreks/astro-monorepo-vercel
Participation
The text was updated successfully, but these errors were encountered: