R
Railway5mo ago
tom

ERR_PNPM_WORKSPACE_PKG_NOT_FOUND  In : "nextra@workspace:*" is in the dependencies but no package na

Very likely the same error as described here: https://help.railway.app/questions/cannot-install-with-frozen-lockfile-be-be29918d https://github.com/railwayapp/nixpacks/issues/1091 However I followed their recommendation and added the nixfile as they did, but still getting an error. You can find my repo here which is a fork of nextra My repo: https://github.com/mecattaf/nextra There is a tiny chance that my changes may be the cause for this, specifically: I have a custom root directory set: /examples/my-site/ And I have a custom Start command: pnpm run start This is meant to work in tandem with the nixfile: providers = ["node"] [phases.install] cmds = ["npm install -g corepack", "corepack enable", "corepack prepare [email protected] --activate", "pnpm install"] I am specifically trying to launch /examples/my-app during this operation. Your help is much appreciated! T Duplicate of: https://help.railway.app/questions/err-pnpm-workspace-pkg-not-found-in-c4b1f8f5
Solution:
for nextra support i would recommending asking the developers or its community since this would not be a platform issue
Jump to solution
18 Replies
Percy
Percy5mo ago
Project ID: 1bf057c6-3f53-4ada-b854-6ffcec3f079d
tom
tomOP5mo ago
1bf057c6-3f53-4ada-b854-6ffcec3f079d
Brody
Brody5mo ago
what version of node do you use locally?
tom
tomOP5mo ago
npm --version 10.8.1 pnpm --version 8.15.8 (I manually downgraded it)
Brody
Brody5mo ago
what version of node do you use locally?
tom
tomOP5mo ago
❯ node -v v20.12.2
Brody
Brody5mo ago
set your engines.node to 20
tom
tomOP5mo ago
I am not planningto build this project on my local computer What would setting this achieve?
Brody
Brody5mo ago
oh so you dont know if this even works locally?
tom
tomOP5mo ago
it's a project that has 11k github stars: https://github.com/shuding/nextra/tree/main
GitHub
GitHub - shuding/nextra: Simple, powerful and flexible site generat...
Simple, powerful and flexible site generation framework with everything you love from Next.js. - shuding/nextra
tom
tomOP5mo ago
one would expect tobe able to give it to railway and for railway to build it completely
Brody
Brody5mo ago
make sure you can at least get it working locally
tom
tomOP5mo ago
So I created a new railway project from the official nextra gh repo and it was able to build. This means that there was a problem in my fork of the repo
tom
tomOP5mo ago
Nevermind it crashed
tom
tomOP5mo ago
How can i solve the "no script or server" error? Is it a custm build command? > currently pnpm run start Custom start command? > currently cd examples/docs && npm run start
Solution
Brody
Brody5mo ago
for nextra support i would recommending asking the developers or its community since this would not be a platform issue
Want results from more Discord servers?
Add your server