Skip to content
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

[BUG] SDK cannot be called in Electron project #131

Open
jacktian opened this issue Sep 21, 2024 · 1 comment
Open

[BUG] SDK cannot be called in Electron project #131

jacktian opened this issue Sep 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@jacktian
Copy link

OpenIM SDK Version

3.8.1

OpenIM Server Version

3.6.0

SDK Platform

Web WASM SDK

Device Model

desktop

Operating System Version

ubuntu 22.04

Bug Description and Steps to Reproduce

我正在开发一个 Electron 应用,在尝试集成 [SDK 名称] 时遇到了问题。具体情况如下:
Electron 版本:[22.3.27]
操作系统:[ubuntu:22.04]
SDK 版本:[3.8.1]
我按照 [SDK 集成文档中的步骤说明] 进行了集成操作,但在运行应用时,发现 SDK 始终无法正常调用。
我已经尝试了以下方法进行排查:
检查了 SDK 的依赖是否正确安装,确认所有依赖项都已满足。
查看了控制台输出,没有发现明显
imDemo.zip
的错误信息提示与 SDK 调用相关的问题。
对比了官方提供的示例代码和我的项目代码,确保集成步骤没有错误。
然而,问题仍然存在。这严重影响了项目的进展,希望开发团队能够尽快帮助我解决这个问题
imDemo.zip

Screenshots Link

No response

@jacktian jacktian added the bug Something isn't working label Sep 21, 2024
@OpenIM-Robot OpenIM-Robot changed the title [BUG] SDK 在 Electron 项目中无法调用 [BUG] SDK cannot be called in Electron project Sep 21, 2024
@Bloomingg Bloomingg transferred this issue from openimsdk/openim-sdk-core Sep 24, 2024
@Bloomingg
Copy link
Member

Bloomingg commented Sep 24, 2024

maybe you need to resolve this issue at first
Uncaught ReferenceError: require is not defined

and getSDK just like this:

export const IMSDK = getSDK({
    coreWasmPath: './openIM.wasm',
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants