I am new to AgoraRTC and getting the below error while running the application using node

TypeError: Cannot read property ‘match’ of undefined
at D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:30100
at Module. (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:31863)
at n (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:350)
at Module. (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:50827)
at n (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:350)
at Module. (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:54960)
at n (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:350)
at Module. (D:\ApplyHigh\applyhigh-video-call\AgoraRTCSDK-3.1.1.js:3:1310)

Not sure if there is some mismatch on versions(b/w node and agoraRTC). I tried deleting package-lock.json and node_modules and did npm install, but the issue still persists Can someone please address this issue?