typescript-monorepo-boilerplate
typescript-monorepo-boilerplate copied to clipboard
Question - Module Imports Using @template can't be resolved without compiling
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?
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.