Hello,
I'm facing error while I importing WebRTCAdaptor from @antmedia/webrtc_adaptor. Here I attached the screenshot of the error. I've checked the package.json file of @antmedia. In that, all are OK, but I don't know why I'm getting this error.
Thanks in advance.
Error while importing through require()
My code using require statement:
const express = require("express");const app = express();const webRTCAdapter = require("@antmedia/webrtc_adaptor");
app.listen(3000,()=> console.log("server is running at port 3000"));
import express from "express";const app = express();import{WebRTCAdaptor} from "@ant-media/webrtc_adaptor";
app.listen(3000,()=> console.log("server is running at port 3000"));
Question
Tahmid Khandokar
Hello,
I'm facing error while I importing WebRTCAdaptor from @antmedia/webrtc_adaptor. Here I attached the screenshot of the error. I've checked the package.json file of @antmedia. In that, all are OK, but I don't know why I'm getting this error.
Thanks in advance.
Error while importing through require()
My code using require statement:
package.json
Error while importing through import statement:
My code using import statement
package.json
Link to comment
Share on other sites
Top Posters For This Question
2
1
Popular Days
Sep 15
3
Top Posters For This Question
Tahmid Khandokar 2 posts
mustafaboleken 1 post
Popular Days
Sep 15 2022
3 posts
Popular Posts
mustafaboleken
Hi @Tahmid Khandokar It looks like there are some problems with the NPM package. I created an issue and you can follow the status from the link. https://github.com/ant-media/Ant-Media-Server
Posted Images
2 answers to this question
Recommended Posts