innocces / taro-hooks

Hooks Library for Taro

Home Page:https://next-taro-hooks.pages.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug: TypeError: 'getOwnPropertyDescriptor' on proxy: trap reported non-configurability for property 'onLaunch' which is either non-existent or configurable in the proxy target

zjcrender opened this issue · comments

版本

  • taro-hooks: 2.0.7
  • taro: 3.6.18
  • node: 16.20.2
  • npm: 8.19.4
  • OS: MacBook Pro M2 sonoma
  • Browser:

复现步骤

示例代码:codesandbox

  1. npm install
  2. 确保project.alipay.json设置developOptions.hotReloadtrue
  3. npm run dev:alipay
  4. 打开支付宝IDE,收到报错信息

你期望的现象?

获取到app中的globalData

现有的现象?

复现 repo(最好可以提供一个复现的 repo)

repo

welcome discuss in wechat:

可以贴一下 package.json 和 真实使用处的位置代码片段么

Hello @zjcrender. In order to facilitate location and troubleshooting, we need you to provide a realistic example. You can create a taro project by clicking here and provide the GitHub warehouse address and reproduce examples.

你好 @zjcrender, 为了方便定位和排查问题,我们需要你提供一个重现实例。你可以通过点击 此处 创建一个 Taro 项目并提供 GitHub 仓库地址和重现实例。

@innocces 不好意思,忘记提是支付宝小程序了。
代码复现:codesandbox
然后已经发现问题在哪了,project.alipay.json设置了developOptions.hotReload就会出现这个问题

@innocces 不好意思,忘记提是支付宝小程序了。 代码复现:codesandbox 然后已经发现问题在哪了,project.alipay.json设置了developOptions.hotReload就会出现这个问题

那已经发现问题的话这边是不是就可以关了。