Replies: 14 comments 2 replies
-
For some reason after the typescript compiles it adds to
Probably the solution is to add this:
to For now, anyone who has this issue has two options:
|
Beta Was this translation helpful? Give feedback.
-
Really hard to do option 2 in Docker, I've opted for option 1, working perfectly. |
Beta Was this translation helpful? Give feedback.
-
You can always use https://www.npmjs.com/package/patch-package |
Beta Was this translation helpful? Give feedback.
-
You can add this file
And check about postinstall to apply the changes. |
Beta Was this translation helpful? Give feedback.
-
My lamda function (serverless fm and github actions) gave this error, and patch fixed it. npm i patch-package github action file
I also have the same app deployed elsewhere there I install typescript as a global dependecy so it works as well. |
Beta Was this translation helpful? Give feedback.
-
This issue also breaks Heroku deployments because devDependencies are removed on production builds. For me, reverting to version 10.2.6 works. |
Beta Was this translation helpful? Give feedback.
-
Had the same issue, installed typescript as a regular dependency solved the problem. Looking forward a prettier solution in the future. |
Beta Was this translation helpful? Give feedback.
-
Lets add this to docs |
Beta Was this translation helpful? Give feedback.
-
I have added a section to the docs https://nestjs-i18n.com/faq/common#cannot-find-module-typescript . If there are any other viable solution , let me know so I can add them there as well |
Beta Was this translation helpful? Give feedback.
-
Thank you for maintaining this lib. Just a little comment from our perspective here: We cannot use option 2 from the docs as our project is deployed automatically by a pipeline somewhere into the cloud (no access for us). We do not need typescript as a production dependency and do not want to add it "artificially" because of this issue. Therefore, we will stick to version 10.2.6 for the moment. Would like to know the perspective of other consumers for sure.. :) |
Beta Was this translation helpful? Give feedback.
-
I think something broke on the current version. I will have to write a test to see if I can roll this change back |
Beta Was this translation helpful? Give feedback.
-
This seems to be fixed with the #565 . You can try the latest version @Ferm0494 @SimonPotier @d4ins @therealwalim @SvendDomdey |
Beta Was this translation helpful? Give feedback.
-
After updating 10.3.4 i removed patches from my code and build commands and it works. Thanks for update. |
Beta Was this translation helpful? Give feedback.
-
I can confirm that the problem is solved on 10.3.5 as well. Thanks for the quick fix and for keeping us updated. Cheers ! |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When building Docker Images, we exclude devDependencies such as
typescript
found in/utils/typescript.js
, had to be included to production dependencies in order to make the tree flowReproduction
yarn install --production
System Info
Used Package Manager
yarn
Validations
Beta Was this translation helpful? Give feedback.
All reactions