R
Railway2w 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 pnpm@9.1.0 --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
Percy2w ago
Project ID: 1bf057c6-3f53-4ada-b854-6ffcec3f079d
tom
tom2w ago
1bf057c6-3f53-4ada-b854-6ffcec3f079d
Brody
Brody2w ago
what version of node do you use locally?
tom
tom2w ago
npm --version 10.8.1 pnpm --version 8.15.8 (I manually downgraded it)
Brody
Brody2w ago
what version of node do you use locally?
tom
tom2w ago
❯ node -v v20.12.2
Brody
Brody2w ago
set your engines.node to 20
tom
tom2w ago
I am not planningto build this project on my local computer What would setting this achieve?
Brody
Brody2w ago
oh so you dont know if this even works locally?
tom
tom2w 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
tom2w ago
one would expect tobe able to give it to railway and for railway to build it completely
Brody
Brody2w ago
make sure you can at least get it working locally
tom
tom2w 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
tom2w ago
Nevermind it crashed
tom
tom2w 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
Brody2w ago
for nextra support i would recommending asking the developers or its community since this would not be a platform issue