tommedema / serverless-mono-example

Example repo on how to use yarn workspaces together with the serverless framework.
124 stars 10 forks source link

Cannot find module '@org/random' #8

Closed jesuspc closed 5 years ago

jesuspc commented 5 years ago

After just cloning and yarn installing, and without building the project both of my editors (VSCode and emacs with tide) report "Cannot find module '@org/random'". Weirdly, if I run tsc --traceResolution inside sls-random I get:

Module name '@org/random' was successfully resolved to '/Users/prietoj/Code/serverless-mono-example/packages/random/src/index.ts'.

Can this be related to the issue being tracked in https://github.com/tommedema/serverless-mono-example/issues/4?

tommedema commented 5 years ago

Yes, this is indeed the same issue as described in #4. It depends on https://github.com/Microsoft/TypeScript/issues/26913