In my Typescript project (ProjectA), I am utilizing several node packages. Additionally, I have a babel project (ProjectB) with a build configuration that supports output for multiple module definition standards such as amd, common.js, and esm.
My question is: Can I integrate the compiled code from ProjectB into ProjectA?
Currently, within ProjectA, I've created a folder called ProjectB-dist and placed all of the outputs from ProjectB there.
In one of my .ts files, I attempted to import ProjectB like this:
import ProjectB form './ProjectB-dist/output.common.js'
I have also included types for this project in my @types folder. However, the compiler is showing an error message:
Could not find a declaration file for module './ProjectB-dist/output.common.js'.
Am I misunderstanding something about the module concept?