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
我现在在将1.3.9升级到4.0.8,升级过程中报错 ”vendors-node_modules_taro_h5_prebundle_chunk-DZCD4O6R_js.js:18426 Uncaught (in promise) TypeError: Cannot use 'in' operator to search for 'undefined' in undefined
at pxTransform (vendors-node_modules_taro_h5_prebundle_chunk-DZCD4O6R_js.js:18426:23)
at eval (webpack-internal:///./src/components/tempItem/index.js:268:70)
at ./src/components/tempItem/index.js (src_app_boot_js.js:2097:1)
at options.factory (runtime.js:966:31)
at webpack_require (runtime.js:34:32)
at fn (runtime.js:624:21)
at eval (webpack-internal:///./src/pages/home/index.js:38:85)
at ./src/pages/home/index.js (src_app_boot_js.js:2174:1)
at options.factory (runtime.js:966:31)
at webpack_require (runtime.js:34:32)“,查看代码发现没有读到config中的值。
相关平台
H5
浏览器版本: Chrome/131.0.0.0
使用框架: React
复现步骤
我现在在将1.3.9升级到4.0.8,升级过程中报错 ”vendors-node_modules_taro_h5_prebundle_chunk-DZCD4O6R_js.js:18426 Uncaught (in promise) TypeError: Cannot use 'in' operator to search for 'undefined' in undefined
at pxTransform (vendors-node_modules_taro_h5_prebundle_chunk-DZCD4O6R_js.js:18426:23)
at eval (webpack-internal:///./src/components/tempItem/index.js:268:70)
at ./src/components/tempItem/index.js (src_app_boot_js.js:2097:1)
at options.factory (runtime.js:966:31)
at webpack_require (runtime.js:34:32)
at fn (runtime.js:624:21)
at eval (webpack-internal:///./src/pages/home/index.js:38:85)
at ./src/pages/home/index.js (src_app_boot_js.js:2174:1)
at options.factory (runtime.js:966:31)
at webpack_require (runtime.js:34:32)“,查看代码发现没有读到config中的值。
然后我新建一个项目,在useLaunch中使用Taro.pxTransform(10)同样报错,报错信息如下
”Uncaught TypeError: Cannot read properties of undefined (reading 'pxTransform')
at eval (app.js:10:1)
eval @ app.js:10
setTimeout
eval @ app.js:9
callback @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:90
(匿名) @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:480
triggerAppHook @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:480
onLaunch @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:409
(匿名) @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:292
Promise.then
waitAppWrapper @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:292
value @ vendors-node_modules_taro_h5_prebundle_chunk-YE3WZ4YS_js.chunkhash.js:411
createRouter @ vendors-node_modules_taro_h5_prebundle_chunk-YZEYTA5X_js.chunkhash.js:41276
eval @ app.boot.js:47
./src/app.boot.js @ src_app_boot_js.chunkhash.js:84
options.factory @ runtime.c77173c8.js:798
webpack_require @ runtime.c77173c8.js:34
fn @ runtime.c77173c8.js:456
Promise.then
eval @ app.config.js:1
./src/app.config.js @ app.c77173c8.js:49
options.factory @ runtime.c77173c8.js:798
webpack_require @ runtime.c77173c8.js:34
webpack_exec @ app.c77173c8.js:2004
(匿名) @ app.c77173c8.js:2005
webpackJsonpCallback @ runtime.c77173c8.js:1415
(匿名) @ app.c77173c8.js:9“
期望结果
期望可以正常使用
实际结果
报错
环境信息
The text was updated successfully, but these errors were encountered: