Transpile node_modules

Hi,

I have an issue on compiling/transpiling a module located in the node_modules folder.

Context: my project is a monorepo. The expo app has as dependency in its package.json to the workspace package. This workspace package is not compiled/transpiled. The “import” from the expo app is @my-monorepo/lib/my-model. My model is a .ts file, and it has decorators from typeorm. So those decorators are not transpiled properly from babel/tsconfig. If I import the “my-model” directly from the folder, it works.

So, do you have a solution?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.