'I am trying to use antmedia server in my angular project

When i implemented it. it was unable to find webrtc adaptor from node_modules/antmedia/webrtc_adaptor.js so i created a folder in node_modules/@types named by webrtc_adaptor in which i added index.d.ts and paste the code in that file declare module '@antmedia/webrtc_adaptor'. so it was able to get webrtc adaptor but its giving folowing error.

./node_modules/@antmedia/webrtc_adaptor/index.html:1:0 - Error: Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

| |

please tell me how to resolve it.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source