Skip to content
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

trying to deploy a velite site to vercel using pnpm and monorepo fails #218

Open
ymolists opened this issue Sep 12, 2024 · 1 comment
Open

Comments

@ymolists
Copy link

Hi folks.

I am trying to push a blog site i did as a monorepo using velite to vercel unfurtunately i am getting a Cannot find module 'next/dist/server/next-server.js'. I was hoping you folks might have some insights on what could be causing it.

  1. works fine in dev mode
  2. works perfect when built locally and started
    3.1 when i push to vercel i am getting the above error
    3.2 all other pages of the site are working perfectly when i deploy it. its only the blog that has this issue.
❯ ./node_modules/.bin/vercel version
Vercel CLI 33.2.0

here is how iam deploying it

running from the root of the mono repo
echo deploying ... \
&& pnpm --filter app-site vercel:build \
&& pnpm --filter app-site vercel:deploy \

relevant seciont in ./apps/app-site/package.json

...
    "vercel:build": "vercel build",
    "vercel:deploy": "vercel deploy --prebuilt"

my directory tree

❯ tree -d -L 2 -I node_modules 
.
├── apps
│   ├── app-dash
│   ├── app-draw
│   ├── app-pres
│   └── app-site
├── bldz
├── cue.mod
├── packages
│   ├── config-eslint
│   ├── config-tailwind-js
│   ├── config-tailwind-ts
│   ├── config-typescript
│   ├── lib-auth
│   ├── lib-r3f-demos
│   ├── lib-r3f-scene
│   └── lib-react-ui


Best Rgards

Additional information

No response

Example

No response

@zce
Copy link
Owner

zce commented Sep 13, 2024

reproducible repo or more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants