openimsdk / open-im-sdk-web-wasm

JS SDK for OpenIM Web use by Webassembly of go
https://openim.io
Apache License 2.0
29 stars 37 forks source link

Bug: Report an error : Go is not defined #66

Closed 523233 closed 9 months ago

523233 commented 9 months ago

What happened?

I used uniapp as my development framework. After importing sdk in browser mode according to the instructions on the documentation, I ran the project and reported an error

What did you expect to happen?

Successful operation

How can we reproduce it (as minimally and precisely as possible)?

Use uniapp to create a base project, which can be reproduced by importing it as browser in the document

Anything else we need to know?

I found anomalies in the following files, but I was unable to resolve them 1.lib/sdk/initialize.d.ts image

version

```console $ {name} version # paste output here ```

Cloud provider

OS version

```console # On Linux: $ cat /etc/os-release # paste output here $ uname -a # paste output here # On Windows: C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture # paste output here ```

Install tools

523233 commented 9 months ago

The problem is because this step is not performed:拷贝完成后在您的index.html文件中通过 script 标签引入wasm_exec.js文件