Startapp's build fails even though everything is okay with the code

barisbllPRO

10 months ago

I changed my startapp's build and deploy start command.

The code had no changes but still, it throws error and fails deploying.

Previously we had no build command and start app was this

lerna run dev --scope start-app

Now I added build command

lerna run build --scope start-app

and for the deploy start command I added

lerna run start --scope start-app

Everything is working nice in local but build somehow fails in railway. We are using the same env variables, but it doesn't make a difference.

I am suspicious that the newest version of the code is not building, but it is using something from cache but I have no proof to support this theory.

How can I fix it?

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

3 Replies

10 months ago

Hey, there are a lot of services in a lot of different environments, please provide -

Project name.
Environment name.
Service name.



10 months ago

From your build logs -

Error: <Html> should not be imported outside of pages/_document.

And

TypeError: Cannot read properties of null (reading 'useContext')