10 months ago
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
0 Replies
10 months ago
full build logs please -
10 months ago
what version of node do you use locally?
10 months ago
what version of node do you use locally?
10 months ago
set your engines.node
to 20
10 months ago
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
one would expect tobe able to give it to railway and for railway to build it completely
10 months ago
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
10 months ago
for nextra support i would recommending asking the developers or its community since this would not be a platform issue