rtc-web-archive icon indicating copy to clipboard operation
rtc-web-archive copied to clipboard

typescript error: agora-rtc-sdk/index.d.ts' is not a module.

Open julian-777 opened this issue 4 years ago • 5 comments

error: /node_modules/agora-rtc-sdk/index.d.ts' is not a module.

install agora-rtc-sdk in CRA react project, but get this error when compiling

how can I fix this ?

julian-777 avatar Oct 03 '20 12:10 julian-777

try just import 'agora-rtc-sdk';

Naeemo avatar Oct 03 '20 13:10 Naeemo

Same issue for me.

m0sth8 avatar Oct 13 '20 23:10 m0sth8

try just import 'agora-rtc-sdk';

My bad, it doesn't work.

Naeemo avatar Oct 14 '20 07:10 Naeemo

This should be a fix https://github.com/AgoraIO/rtc-web-archive/pull/24

m0sth8 avatar Oct 14 '20 15:10 m0sth8

It seems that the problem has been fixed https://github.com/AgoraIO/rtc-web-archive/blob/2c0e25e5384b596ffb52fe86750814642935e21a/index.d.ts#L8

But have not released yet.

code2933 avatar Oct 16 '20 16:10 code2933