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
执行taro build --type weapp --watch后,微信开发者工具控制台报错如下:
app.js错误:
TypeError: Cannot read property 'hasOwnProperty' of undefined
at installHook (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:10535)
at Module. (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:11972)
at nested_webpack_require_879 (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:45)
at vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:97
at vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:98
at webpackUniversalModuleDefinition (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:29)
at node_modules/@tarojs/plugin-react-devtools/dist/backend/index.js (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:33)
at __require (node_modules_taro_weapp_prebundle_react_js.js?t=wechat&s=1737207710854&v=8635ed1d373317ed44dd1735cbda54e2:28)
at Object../node_modules/.taro/weapp/prebundle/@tarojs_plugin-react-devtools_dist_runtime.js (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:12214)
at webpack_require (webpack_bootstrap:19)(env: macOS,mp,1.06.2412050; lib: 3.7.5)
相关平台
微信小程序
小程序基础库: 3.7.6
使用框架: React
复现步骤
执行taro build --type weapp --watch后,微信开发者工具控制台报错如下:
app.js错误:
TypeError: Cannot read property 'hasOwnProperty' of undefined
at installHook (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:10535)
at Module. (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:11972)
at nested_webpack_require_879 (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:45)
at vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:97
at vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:98
at webpackUniversalModuleDefinition (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:29)
at node_modules/@tarojs/plugin-react-devtools/dist/backend/index.js (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:33)
at __require (node_modules_taro_weapp_prebundle_react_js.js?t=wechat&s=1737207710854&v=8635ed1d373317ed44dd1735cbda54e2:28)
at Object../node_modules/.taro/weapp/prebundle/@tarojs_plugin-react-devtools_dist_runtime.js (vendors-node_modules_taro_weapp_prebundle_tarojs_plugin-react-devtools_dist_runtime_js.js?t=wechat&s=1737207710854&v=79cf794e7c669768104aef5cbf637c6a:12214)
at webpack_require (webpack_bootstrap:19)(env: macOS,mp,1.06.2412050; lib: 3.7.5)
期望结果
正常使用react-devtools
实际结果
未能正常使用react-devtools
环境信息
The text was updated successfully, but these errors were encountered: