Illegal 'use strict' directive in function with non-simple parameter list
Uncaught SyntaxError: Illegal 'use strict' directive in function with non-simple parameter list at ./node_modules/.pnpm/localforage@1.10.0/node_modules/localforage/dist/localforage.js (index.bb2c0682.js:25076:304) at webpack_require (index.bb2c0682.js:81285:298) at eval (ZegoExpressWebRTM.js:1:164) at eval (ZegoExpressWebRTM.js:1:311) at ./node_modules/.pnpm/zego-express-engine-webrtm@1.23.0/node_modules/zego-express-engine-webrtm/ZegoExpressWebRTM.js (index.bb2c0682.js:80907:350) at webpack_require (index.bb2c0682.js:81285:298) at eval (ZegoExpressWebRTC.js:1:41) at eval (ZegoExpressWebRTC.js:1:234) at ./node_modules/.pnpm/zego-express-engine-webrtc@2.24.0/node_modules/zego-express-engine-webrtc/ZegoExpressWebRTC.js (index.bb2c0682.js:80898:299) at webpack_require (index.bb2c0682.js:81285:298)
This error appears on the staging environment of my vue js app that uses ZegoCloud Prebuilt UIKit
My steps for deploying:
npm run build
on my local development branch
commit and push
on the development branch
git pull
on my server
Info about server setup:
EC2 Instance - Ubuntu
The error appears only on the staging environment but not on the local development. If anyone can help, thank you!