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