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

Taro打包成小程序后页面报错Cannot read property 'firstChild' of undefined #10015

Closed
huangyiman opened this issue Aug 10, 2021 · 4 comments
Labels
F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@huangyiman
Copy link

相关平台

微信小程序

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

复现步骤

Taro-cli搭建项目打包小程序后页面空白,报Cannot read property 'firstChild' of undefined错误,重新修改页面的布局,才有可能规避这个错误

期望结果

正确打包小程序

实际结果

打包后页面报错

环境信息

 Taro v3.3.2

Taro CLI 3.3.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.17.3 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.22.10 - D:\Users\huanghw\AppData\Roaming\npm-global\yarn.CMD
      npm: 6.14.13 - D:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-vue3 Framework - Vue 3 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 10, 2021
@ccwyn
Copy link

ccwyn commented Aug 11, 2021

这个问题找到解决方案了嘛?

@ziclee
Copy link

ziclee commented Aug 11, 2021

同问,卡在这里,心累。

@tolking
Copy link

tolking commented Aug 16, 2021

link #10002 要善于搜索

@Chen-jj
Copy link
Contributor

Chen-jj commented Aug 23, 2021

duplicate #10077 #10002

先把 Vue 降级到 3.1.4

@Chen-jj Chen-jj closed this as completed Aug 23, 2021
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

5 participants