Turborepo typescript apps - can't find /dist/index.js
elevenHOBBY
a year ago
I have a Turborepo with 2 Node.js Typescript apps.
The very first time I deploy my apps, they work fine, but as soon as a redeploy occurs, I keep getting this error upon start for both of them:
Error: Cannot find module '/app/apps/[service-name]/dist/index.js'
If I delete the service and recreate a new one, it works again on the first deployment, and all subsequent deployments fail with the same error.
Any help would be appreciated!
3 Replies
a year ago
Please make sure your folder and filename casing is the same locally and on github.
elevenHOBBY
a year ago
I have checked this and it's not the problem