AgoraIO-Community / Agora-Uniapp-SDK

MIT License
27 stars 13 forks source link

运行demo失败-TypeError: Cannot read property 'callMethod' of undefined #56

Open Captain-Tab opened 1 year ago

Captain-Tab commented 1 year ago

运行Demo失败,在初始engine的时候就报错了

try {
       await RtcEngine.create(config.appId);
} catch(error) {
     console.log('error', error)
}

报错信息

 error,  TypeError: Cannot read property 'callMethod' of undefined 

请问报错原因是配置的原因 还是appID没有设置对

guxiansheng1991 commented 11 months ago

module.exports = { // Get your own App ID at https://dashboard.agora.io/ "appId": 'ef1ac14f64224565ae69d410b73fa449', // Please refer to https://docs.agora.io/en/Agora%20Platform/token "token": '007eJxTYNhuW6dyXdny1M5NBxbcYPtaXbng2IHFaTe0E5ZfE1plXFSnwJCaZpiYbGiSZmZiZGRiamaamGpmmWJiaJBkbpyWaGJieeJUTGpDICPD/ivJrIwMEAjiczIUVybHl6QWlxgxMAAAjC0jgg==', "channelId": 'syc_test2', "uid": 123456, "stringUid": '' }

配置是这样的,但是demo依然运行错误,无论是真机还是模拟器,咋搞的