LernaJS Typescript cannot find module

后端 未结 1 1821
死守一世寂寞
死守一世寂寞 2020-12-31 03:51

I\'m trying to use LernaJS with typescript and I have some problems. When I try to run my package-1 which has package-2 as dependency I get the error:

    module.j         


        
相关标签:
1条回答
  • 2020-12-31 04:29

    Please ensure you have defined main in your package.json in (at least project-2). I assume the name field in package.json (for project-2) is project-2.

    Main should link to dist/index.js

    0 讨论(0)
提交回复
热议问题