You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VM47 WAService.js:2 TypeError: Cannot read property 'unstable_batchedUpdates' of undefined
at Hooks.hooks$1.batchedEventUpdates (taro.js:245)
at ji.eventHandler [as eh] (taro.js:6172)
at Object.i.safeCallback (VM47 WAService.js:2)
at VM47 WAService.js:2
at b (VM47 WAService.js:2)
at VM47 WAService.js:2
at VM47 WAService.js:2
at i (VM8 asdebug.js:1)
at c (VM8 asdebug.js:1)
at VM8 asdebug.js:1(env: macOS,mp,1.05.2110290; lib: 2.22.0)
相关平台
微信小程序
小程序基础库: 2.22.0
使用框架: React
复现步骤
project.config.json
的两个字段分别为"miniprogramRoot": "miniprogram/", "pluginRoot": "plugin/"
package.json
添加新的script:"dev:wxplugin": "taro build --plugin weapp --watch"
list.tsx
文件中添加一行<Button>Click me</Button>
,Button从@tarojs/components
引入(从taroify
引入的组件也有该问题).yarn dev:wxplugin
. 使用微信小程序开发者工具打开miniprogram
目录go to pages/list
进入插件页面,点击添加的按钮,在控制台可见报错信息期望结果
无报错。
实际结果
点击Button后,控制台出现报错. (Mac、windows皆有该问题)
环境信息
The text was updated successfully, but these errors were encountered: