westonsoftware / vue-webrtc

WebRTC video component for Vue.js
MIT License
365 stars 127 forks source link

For some reason even after your fix, the 2.00 version still does not work on vue2 #96

Closed rimi1414 closed 2 years ago

rimi1414 commented 2 years ago

For some reason even after your fix, the 2.00 version still does not work on vue2 thanks

westonsoftware commented 2 years ago

Upgrade to V3, or run your own server for V2.

rimi1414 commented 2 years ago

thanks. I started a new project in Vue3, installed vue-webrtc. I tried to run but for some reason I get an error that I have been trying to fix for a week and do not know how. Maybe you know? Maybe you know how to help? This is the error:

ERROR in ./node_modules/vue-webrtc/dist/vue-webrtc.esm.js 7:0-42 Module not found: Error: Can't resolve 'child_process' in 'C:\Users\rimir\WebstormProjects\tryingAgain\node_modules\vue-webrtc\dist' @ ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/vue-loader/dist/index.js??

ERROR in ./node_modules/vue-webrtc/dist/vue-webrtc.esm.js 6:0-24 Module not found: Error: Can't resolve 'url' in 'C:\Users\rimir\WebstormProjects\tryingAgain\node_modules\vue-webrtc\dist'

BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it.

thanks!!