TypeScript typings give me “index.d.ts is not a module”

后端 未结 5 762
借酒劲吻你
借酒劲吻你 2020-12-16 09:12

I am getting File node_modules/@types/webrtc/index.d.ts is not a module with this code:

import * as webrtc from \"webrtc\";
const peerConnection1 =          


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 09:32

    ///

    You may or may not want to do this depending on your build and style needs, but this seems to be the quick (and dirty) fix.

提交回复
热议问题