I tried to implement WebRTC simple-peer video chat application using .net core MVC. But when writing javascript implementation that needs to make peer connection, they have used require("xxx") function and I am getting an error that required is not defined. I know this needs node or requirejs. I have tried installing the node also but it is not working.
1)let Peer = require('simple-peer');
let p = new Peer()
can anyone tell me how to load the required function in .netcore MVC project javascript files? (I have also use SignalR)