Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG]. 4.0.4 Vue3 TS Webpack5 使用默认 Github 模板,v-html 无法渲染 #16305

Open
swdenglian opened this issue Aug 14, 2024 · 4 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@swdenglian
Copy link

相关平台

微信小程序

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

复现步骤

npx @tarojs/cli@4.0.4 init demo-vue3

选择 vue3 ts webpack5 sass pnpm

初次启动缺失 "@babel/plugin-proposal-class-properties" , 安装后重新 dev:weapp

选择运行,发现 <nut-toast v-model:visible="show" msg="你成功了" /> msg 未渲染(实际上是 v-html 无效)

期望结果

期望 <nut-toast v-model:visible="show" msg="你成功了" /> 正常显示

实际结果

只显示一个黑框无文字说明

环境信息

 Taro CLI 4.0.4 environment info:
    System:
      OS: macOS 13.0.1
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 22.4.0 - /opt/homebrew/bin/node
      Yarn: 1.22.11 - /usr/local/bin/yarn
      npm: 10.8.1 - /opt/homebrew/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/components: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/helper: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-framework-vue3: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-html: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-alipay: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-h5: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-jd: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-qq: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-swan: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-tt: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/plugin-platform-weapp: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/runtime: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/shared: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/taro: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/taro-loader: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      @tarojs/webpack5-runner: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      babel-preset-taro: 4.0.5-alpha.6 => 4.0.5-alpha.6 
      eslint-config-taro: 4.0.5-alpha.6 => 4.0.5-alpha.6 
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 14, 2024
@swdenglian
Copy link
Author

4.0.4 也一样,然后我使用 4.0.5-alpha.6 尝试也是一样的

This was referenced Aug 17, 2024
@woai3c
Copy link

woai3c commented Aug 27, 2024

一样的问题,我用的是 4.0.4 taro react 版本,按照文档无法渲染 HTML。

@drawf
Copy link

drawf commented Sep 1, 2024

一样的问题,4.0.5 Vue3 TS Webpack5 ,微信小程序运行,toast 里不显示文字,
image

借楼说一下,选择vite创建的项目,微信小程序运行不起来,生成的 dist 有问题
image

@woai3c
Copy link

woai3c commented Sep 1, 2024

一样的问题,4.0.5 Vue3 TS Webpack5 ,微信小程序运行,toast 里不显示文字, image

借楼说一下,选择vite创建的项目,微信小程序运行不起来,生成的 dist 有问题 image

退到 3.x 就正常了

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Status: Todo
Development

No branches or pull requests

3 participants