-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
用cra创建好的electron项目,能正常打包,npm install trtc-electron-sdk后报错如下,请问怎么解决? #34
Comments
"devDependencies": { |
"trtc-electron-sdk": "^11.4.503", |
{ |
"scripts": { |
在electron的preload.js文件下,导入const TRTCCloud = require('trtc-electron-sdk').default;就会报错。 |
dlopen(/electron-cra-react-ts/node_modules/trtc-electron-sdk/build/Release/trtc_electron_sdk.node, 0x0001): Library not loaded: '@rpath/TXFFmpeg.framework/TXFFmpeg'
Referenced from: '/electron-cra-react-ts/node_modules/trtc-electron-sdk/build/Release/trtc_electron_sdk.node'
Reason: tried: '/electron-cra-react-ts/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/TXFFmpeg.framework/TXFFmpeg' (no such file), '/electron-cra-react-ts/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Helper (Renderer).app/Contents/MacOS/../../../TXFFmpeg.framework/TXFFmpeg' (no such file), '/Library/Frameworks/TXFFmpeg.framework/TXFFmpeg' (no such file), '/System/Library/Frameworks/TXFFmpeg.framework/TXFFmpeg' (no such file)
The text was updated successfully, but these errors were encountered: