import error with ts-node-maintained#4826
-
Does anyone know why running I'm working with the latest version of AdonisJS. |
BetaWas this translation helpful?Give feedback.
All reactions
You're missing a few steps. In your case, it looks like you’re running the command from the project's root directory, which still contains the unbuilt application.
I’m not sure how Heroku works, but you need to build the application and deploy only the build folder. After that, re-install the production dependencies from within that folder to keep your deployment as minimal as possible.
Replies: 2 comments 8 replies
-
Hey@klever34! 👋🏻 Do you have |
BetaWas this translation helpful?Give feedback.
All reactions
-
@RomainLanz |
BetaWas this translation helpful?Give feedback.
All reactions
-
Are you trying to run |
BetaWas this translation helpful?Give feedback.
All reactions
🎉 1
-
@RomainLanz I am trying to deploy to Heroku. The build gets done completely. The funny thing is it either returns the ts-node-maintained error or the one below in the logs |
BetaWas this translation helpful?Give feedback.
All reactions
-
You're missing a few steps. In your case, it looks like you’re running the command from the project's root directory, which still contains the unbuilt application. I’m not sure how Heroku works, but you need to build the application and deploy only the build folder. After that, re-install the production dependencies from within that folder to keep your deployment as minimal as possible. |
BetaWas this translation helpful?Give feedback.
All reactions
-
Let me look into your suggestion@RomainLanz |
BetaWas this translation helpful?Give feedback.
All reactions
-
@RomainLanz You're right about me not running the command in the correct folder. I only needed to |
BetaWas this translation helpful?Give feedback.
All reactions
🎉 1
-
Facing this exact same issue while deploying on coolify using Dockerfile |
BetaWas this translation helpful?Give feedback.
All reactions
-
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
here is my Dockerfile, which used to work earlier but since 2-3 days this issue started and i am unable to deploy anything. but locally building this dockerfile works |
BetaWas this translation helpful?Give feedback.
All reactions
👍 2