AgoraIO-Community / Agora-Electron-Quickstart

Quickstart for Agora Electron SDK(Windows/macOS) https://github.com/AgoraIO/Electron-SDK
71 stars 36 forks source link

ERROR in ./node_modules/agora-electron-sdk/js/Api/index.js #32

Open wu0211 opened 4 years ago

wu0211 commented 4 years ago

image

wu0211 commented 4 years ago

odule not found: Error: Can't resolve '../../build/Release/agora_node_ext' in '/Users/wbs/Documents/project/working/meiyu/desktop/node_modules/agora-electron-sdk/js/Api'

miaozhenkun commented 4 years ago

有相同的问题

plutoless commented 4 years ago

请参考 https://github.com/AgoraIO-Community/Agora-Electron-Quickstart/blob/master/Agora-Electron-React/webpack.config.js 的webpack配置 webpack正常无法识别.node的文件,所以需要通过externals的方式或者添加node-loader来让webpack可以识别并加载

1129802181 commented 4 years ago

现在你们的代码已经更新了webpack配置,但是我这边还是报这个错误,window的 image

plutoless commented 4 years ago

@1129802181 这边确认一下electron的版本是否和package.json中agora_electron配置里的版本一致,可以参考我们quickstart的配置

tanchao1101 commented 4 years ago

@plutoless externals的作用不是打包的时候,忽略这个包吗,那么build的时候怎么找到这个包呢

plutoless commented 4 years ago

@tanchao1101 externals只是在webpack打包的时候不打进去,但electron builder打包是会copy node_modules的

plutoless commented 4 years ago

@tanchao1101 如果在dist里直接点进目录看,这边也找不到文件吗?

wangren988888 commented 3 years ago

这个问题依然存在啊...有没有好的解决方案呢?

plutoless commented 3 years ago

@wangren988888 您这边目前出现的问题是? 有详细的复现步骤吗 这个一般是配置错误

Hudiaov587 commented 3 years ago

mac运行起来直接报110错误

plutoless commented 3 years ago

@Hudiaov587 110是token的问题,可以检查下joinChannel的token是否正确

akochemasov commented 1 year ago

I have this problem to. mac m1, mac os ventura, nvm use lts/fermium