看下是不是用了微信小程序不支持或不推荐的选择器。比如我用了:root导致的,AI写的就有这问题
[渲染层错误] CSSAdapter::getMatchedStylesForNode?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是生效的
06-09自问自答一下,在connection的时候会从header里传 [图片]
使用云托管,websocket是否会向服务端传openid?类似于http的header里传的x-wx-openid
2024-01-31大佬最后怎么解决的呢?
云托管中的websocket支持socket.io吗?用了socket.io官方模板,一直重连中。 [图片] 模板: https://github.com/socketio/socket.io/tree/main/examples/chat Dockerfile: FROM node:16-alpine WORKDIR /app COPY . /app RUN yarn config set registry https://mirrors.cloud.tencent.com/npm/ RUN yarn install --frozen-lockfile ENV PORT 80 EXPOSE 80 CMD ["node", "index.js"]
2024-01-30