taro3 vue3 引用原生mp-html组件支付宝端编译错误

btxsgosb  于 2个月前  发布在  其他
关注(0)|答案(3)|浏览(32)

相关平台

支付宝小程序

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

复现步骤

编译后 mp-html 与第一个属性中间缺少空格,使用该组件的页面和 base.axml 都会有此问题;微信正常

<view class="info-content">
    <mp-html selectable="true" :contentValue="item.userInput" />
</view>

期望结果

mp-html selectable

实际结果

mp-htmlselectable

环境信息

Taro v3.6.20

process.env.NODE_ENV undefined

  Taro CLI 3.6.20 environment info:
    System:
      OS: macOS 13.2.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
      Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
      npm: 9.6.7 - ~/.nvm/versions/node/v18.16.0/bin/npm
    npmPackages:
      @tarojs/cli: 3.6.19 => 3.6.19 
      @tarojs/components: 3.6.19 => 3.6.19 
      @tarojs/helper: 3.6.19 => 3.6.19 
      @tarojs/plugin-framework-vue3: 3.6.19 => 3.6.19 
      @tarojs/plugin-html: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-alipay: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-h5: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-jd: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-qq: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-swan: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-tt: 3.6.19 => 3.6.19 
      @tarojs/plugin-platform-weapp: 3.6.19 => 3.6.19 
      @tarojs/runtime: 3.6.19 => 3.6.19 
      @tarojs/shared: 3.6.19 => 3.6.19 
      @tarojs/taro: 3.6.19 => 3.6.19 
      @tarojs/taro-loader: 3.6.19 => 3.6.19 
      @tarojs/webpack5-runner: 3.6.19 => 3.6.19 
      babel-preset-taro: 3.6.19 => 3.6.19 
      eslint-config-taro: 3.6.19 => 3.6.19

补充信息

参考官方demo 和 #13146 使用,编译出错

ilmyapht

ilmyapht1#

#14818

应该已经修复了,升级到最新版本试试

dsekswqp

dsekswqp2#

感谢你的来信~~我会尽快给你回复或者通过其他方式答复你 验证已修复

0yg35tkg

0yg35tkg3#

大佬 好 请问vue3 怎么使用的 我的一直报错 感谢

相关问题