Could not find a declaration file for module

后端 未结 1 616
情话喂你
情话喂你 2021-01-13 04:29

I am trying to use a nodejs package which I created, can someone point out what am I doing wrong.

here is how the package structure looks like:

node_         


        
1条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-13 05:08

    You did not indicate in your package.json that your my_commons package has typings in it:

    // my_commons package.json
    {
      "typings": "dist/src/index.d.ts"
    }
    

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