Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

236
Visualizações
Unable to import WebRTCAdaptor which is in js file from antmedia package in node modules folder in angular ts file

It is showing an error that :

Could not find a declaration file for the module 
'@antmedia/webrtc_adaptor/js/webrtc_adaptor.js'. 
'D:/web/node_modules/@antmedia/webrtc_adaptor/js/webrtc_adaptor.js' 
implicitly has an 'any' type.
  Try `npm i --save-dev @types/antmedia__webrtc_adaptor` 
if it exists or add a new declaration (.d.ts) file containing 
`declare module '@antmedia/webrtc_adaptor/js/webrtc_adaptor.js';`

Reference Image here: https://i.stack.imgur.com/JKQdR.png

Error

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Hope you are doing well. Your error is self explanatory.

In order to resolve your issue what you have to do is to create a folder named "antmedia__webrtc_adaptor" at the below path and create a file named "index.d.ts"

Inside the index.d.ts file you have to put the below code and save it.

inside index.d.ts paste the code declare module '@antmedia/webrtc_adaptor'

node_modules/@types/antmedia__webrtc_adaptor/index.d.ts

I am not mentioning the reason why i did so to resolve the issue, I have left this on you to do some research work.

Have a nice weekend.

Cheers

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda