openimsdk / open-im-sdk-web-wasm

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

Bug: Using UniApp or Vue to package SDK is an error #51

Closed bleasprodhnf closed 8 months ago

bleasprodhnf commented 1 year ago

What happened?

image

What did you expect to happen?

How to fix this error

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

Using UniApp or Vue to package SDK is an error

Anything else we need to know?

No response

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

snakebenjm commented 1 year ago

Bro, I got the same problem, At first I was prompted with Go undefined, I fixed it but it gave me this

Bloomingg commented 1 year ago

Please provide the address of the code warehouse that can reproduce the problem. In addition, for uni-app, the introduction of wasm sdk is currently not supported.

bleasprodhnf commented 1 year ago

This error occurs when vue2+webpack imports js-sdk-wasm directly,not js-sdk-web-wasm

Bloomingg commented 8 months ago

72