Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageMeta 前面有空节点报错 #13541

Closed
ccqgithub opened this issue Mar 30, 2023 · 1 comment
Closed

PageMeta 前面有空节点报错 #13541

ccqgithub opened this issue Mar 30, 2023 · 1 comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@ccqgithub
Copy link

相关平台

微信小程序

小程序基础库: 2.19.2
使用框架: Vue 3

复现步骤

在页面中使用page-meta组件

<template>
  <page-meta :meta="{}" />
</template>

运行后 page-meta 前面多一个空节点,报错: 只能是页面内的第一个节点,且不能被 wx:if 、 wx:for 动态变更

期望结果

page-meta 前面没有空节点

实际结果

有空节点

环境信息

Taro CLI 3.6.2 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 16.15.1 - /usr/local/bin/node
      npm: 8.11.0 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.2 => 3.6.2 
      @tarojs/components: 3.6.2 => 3.6.2 
      @tarojs/plugin-framework-vue3: 3.6.2 => 3.6.2 
      @tarojs/runtime: 3.6.2 => 3.6.2 
      @tarojs/taro: 3.6.2 => 3.6.2 
      @tarojs/webpack5-runner: 3.6.2 => 3.6.2 
      babel-preset-taro: 3.6.2 => 3.6.2 
      eslint-config-taro: 3.6.2 => 3.6.2 
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 30, 2023
@Chen-jj
Copy link
Contributor

Chen-jj commented Apr 3, 2023

duplicate #6092

可以尝试下 #6092 的解决办法看看

@Chen-jj Chen-jj closed this as completed Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants