渲染层错误
NutUI React 包名
@nutui/nutui-react-taro
NutUI React 版本号
3.0.9
平台
weapp
重现链接
无
重现步骤
控制台报错
[渲染层错误] CSSAdapter::getMatchedStylesForNode TypeError: (intermediate value)(intermediate value)(intermediate value).children is not iterable(env: macOS,mp,1.06.2503281; lib: 3.8.1)
无法在控制台wxml->styles查看css属性值
期望的结果是什么?
能正常在控制台wxml->styles查看css属性值
实际的结果是什么?
css生效,但是无法在控制台wxml->styles查看css属性值
并且控制台报错 [渲染层错误] CSSAdapter::getMatchedStylesForNode TypeError: (intermediate value)(intermediate value)(intermediate value).children is not iterable(env: macOS,mp,1.06.2503281; lib: 3.8.1)
环境信息
System: OS: macOS 15.1.1 CPU: (10) arm64 Apple M1 Pro Memory: 101.17 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 18.16.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 9.5.1 - /usr/local/bin/npm pnpm: 8.15.5 - /usr/local/bin/pnpm Watchman: 2024.07.15.00 - /opt/homebrew/bin/watchman Browsers: Chrome: 135.0.7049.97 Safari: 18.1.1
其他补充信息
No response
我也是这个问题
微信小程序基础库调到3.7以下就没问题,3.7以上就报这个错误并且看不了css属性
我也是这个问题 就算把微信小程序的基础库版本调到3.7以下还是会有这个问题 请问解决了吗?
我也是这个问题 就算把微信小程序的基础库版本调到3.7以下还是会有这个问题 请问解决了吗?
我用3.6.6是可以的。
基本上使用与tarojs 原生的组件同名的组件就会报这个错误。比如Input,Button,Image等。切换小程序基础库也不行。
单纯使用Cell就不会有问题
一但使用Button [渲染层错误] CSSAdapter::getMatchedStylesForNode TypeError: (intermediate value)(intermediate value)(intermediate value).children is not iterable(env: macOS,mp,1.06.2503300; lib: 3.8.9)
Cannot destructure property 'cssProperties' of 'this._inlineStyle' as it is undefined.
_getWxcsProps() {
const {cssProperties: e} = this._inlineStyle
, t = {};
each(e, (e,s)=>{
if (startWith(e.name, "wxcs_")) {
const n = e.name.replace("wxcs_", "");
startWith(n, "style_") ? (t[n] || (t[n] = {}),
t[n][s - 1] = e.value) : t[n] = e.value
}
}
),
this._wxcsProps = t
}