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

mecattafHOBBY

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

mecattafHOBBY

10 months ago

1bf057c6-3f53-4ada-b854-6ffcec3f079d


10 months ago

full build logs please -


mecattafHOBBY

10 months ago


10 months ago

what version of node do you use locally?


mecattafHOBBY

10 months ago

npm --version
10.8.1

pnpm --version
8.15.8 (I manually downgraded it)


10 months ago

what version of node do you use locally?


mecattafHOBBY

10 months ago

❯ node -v
v20.12.2


10 months ago

set your engines.node to 20


mecattafHOBBY

10 months ago

I am not planningto build this project on my local computer


mecattafHOBBY

10 months ago

What would setting this achieve?


10 months ago

oh so you dont know if this even works locally?


mecattafHOBBY

10 months ago

it's a project that has 11k github stars: https://github.com/shuding/nextra/tree/main


mecattafHOBBY

10 months ago

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


mecattafHOBBY

10 months 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

1256055448608571402


mecattafHOBBY

10 months ago

Nevermind it crashed

1256055611162886144


mecattafHOBBY

10 months 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


10 months ago

for nextra support i would recommending asking the developers or its community since this would not be a platform issue