import { Button } from "@nutui/nutui-react-taro" //版本为 3.0.9
import {View} from "@tarojs/components" // 版本4.0.6
import './style.less'
const Home = () => {
const handleJump = async () => {
}
return <View className='home'>
<Button type='primary' onTap={handleJump}>村上春树</Button>
<Button type='primary' onTap={handleJump}>村上春树</Button>
</View>
}
export default Home
开发者工具报错:
[渲染层错误] CSSAdapter::getMatchedStylesForNode TypeError: (intermediate value)(intermediate value)(intermediate value).children is not iterable
如图所示,看不到css各个属性的值,但是css是生效的
看下是不是用了微信小程序不支持或不推荐的选择器。比如我用了:root导致的,AI写的就有这问题
这个问题现在都还没解决 稳定版 Stable Build (1.06.2503300)
6月了(1.06.2503300)还是有这个问题
太恶心了,还以为自己代码写的有问题。按照上面评论的方法吧版本降成3.6.6重新编译style就能看见了
同样遇到这个问题闹心了几天,退回到3.6.6版本后正常了。
我这边用 3.6.6 的灰度基础库重新编译一下就能看到了,但是这个问题不知道怎么出现的,需要降低版本才暂时解决
官方能不能快点解决这个问题啊,之前看不到dom现在又看不到css。