zepp-health / zml

https://zepp-health.github.io/zml/
Apache License 2.0
6 stars 3 forks source link

Testing on T-Rex-2 #6

Open dejavu1987 opened 7 months ago

dejavu1987 commented 7 months ago

As soon as I wrap my App params in BaseApp()

App(
  BaseApp({ ...

I see following error

SBEngine current filepath: /app.js
I>0>8.124 quickjs- SBEngine Mini Program Error TypeError: cannot read property 'setTimeout' of undefined

Even when the app is empty.

I am on API_LEVEL 2

this repo's README says This library requires API_LEVEL 3.0 or above.

https://zepp-health.github.io/zml/getting-started#overview says It supports Zepp OS1, OS2, OS3 versions.

I believe the documentation page needs updating with the API_LEVEL restrictions.

htoooth commented 7 months ago

@dejavu1987

The zml library does indeed support it, but its usage is different from the 3.0 version. I currently haven't documented this part. I will add this to the documentation later.

dejavu1987 commented 6 months ago

Thanks @htoooth

imdbsd commented 5 months ago

Hi, Is this documented already? Still facing this issue in Amazfit Active, Zepp OS 2.

bymomo commented 3 months ago

@dejavu1987

zml 库确实支持它,但它的用法与 3.0 版本不同。我目前还没有记录这部分。我稍后会将其添加到文档中。

GTS 4 ZEPP2.1的版本,也是无法使用,报错和上面一致,请求更新支持或者更新2.1的操作文档 The GTS 4 ZEPP2.1 version is also unusable with the same error message as above. Please update the support or update the 2.1 operation document