AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

TypeError: Cannot assign to read only property 'process' of object '#<Window>' #115

Closed aquezada closed 3 years ago

aquezada commented 3 years ago

Hi, I have a problem, what appears in console is: TypeError: Cannot assign to read only property 'process' of object '#'

Screen Shot 2020-12-09 at 07 48 39

removing "window.process = {env: {DEBUG: void 0}}" from the AgoraRTC_N-production.JS file, it works. How does it affect?

in Create React App. Please help.

SDK Version:
"agora-rtc-sdk-ng": "^4.1.1",

KenSison commented 3 years ago

I'm getting the same error. I don't know if it's directly related, but it happened when I updated apollo-client to v3.

Dschoordsch commented 3 years ago

I'm getting the same error. I don't know if it's directly related, but it happened when I updated apollo-client to v3.

Same here

mkgo commented 3 years ago

I am also getting the same error and it seems to have to do with npm packages and versions.

I have an older .lock file and if I build with that I do not get the error. But with a clean (no lock file build) then I get that error which is coming from AgoraRTC_N-production.js file at line 224.

aquezada commented 3 years ago

Resolved in 4.2.1