typescript-monorepo-boilerplate icon indicating copy to clipboard operation
typescript-monorepo-boilerplate copied to clipboard

Question - Module Imports Using @template can't be resolved without compiling

Open luongjames8 opened this issue 2 years ago • 1 comments

Thanks for this. I've been pulling my hair out trying to resolve the imports on my own monorepo.

Quick question. For this package, I find that I must compile the TS to JS before imports using @template/service-template are able to find anything. Presumably this is because it's importing as a module, the IDE needs to see the JS in the build folder. But somehow the IDE will point back to the typescript in the src.

Is this the expected behaviour? Is there anyway to get the reference without compiling?

luongjames8 avatar Dec 10 '22 15:12 luongjames8

Hi there. Sorry for the long reply (missed this 😅). Yes this is expected behavior, at least as far as I know. If there is a way to get types without compilation, that would be great. However, my attempts to implement this have failed for a long time.

negezor avatar Jul 27 '23 13:07 negezor