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,npm run dev:h5运行,点击页面报错 #7353

Closed
ying6 opened this issue Aug 17, 2020 · 2 comments
Closed
Assignees
Labels
A-taroize Area - Taro convert 相关 F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Milestone

Comments

@ying6
Copy link

ying6 commented Aug 17, 2020

相关平台

微信小程序

小程序基础库: 2.12.0
使用框架: Vue 2

复现步骤

根据该链接https://www.bookstack.cn/read/taro-v1.3/64f3c9f05952e5fe.md 实现微信小程序转taro,通过npm run dev:h5运行,能正常显示出tabBar(小程序原生的tabBar),点击tabBar按钮,页面没显示,一片空白

期望结果

点击tabBar能正常显示页面

实际结果

空白页面,并报错Uncaught (in promise) Error: 没有找到页面实例

环境信息

� Taro v3.0.7


  Taro CLI 3.0.7 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.18.3 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.6 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Aug 17, 2020
@rottenpen
Copy link
Contributor

taro convert 的坑有点多,3.0.8版本会有优化,如果旧代码不需要大幅度迭代可以考虑 这个方案

@Chen-jj Chen-jj added this to the 3.0.10 milestone Sep 3, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.10, 3.0.11 Sep 10, 2020
@ZakaryCode ZakaryCode modified the milestones: 3.0.11, 3.0.12 Sep 18, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.15, 3.0.16 Oct 23, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.16, 3.0.17 Nov 5, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.17, 3.0.18 Nov 17, 2020
@Chen-jj Chen-jj added the A-taroize Area - Taro convert 相关 label Nov 25, 2020
@Chen-jj Chen-jj modified the milestones: 3.0.18, 3.1.0 Nov 25, 2020
@Chen-jj
Copy link
Contributor

Chen-jj commented Nov 25, 2020

试试 3.1 beta 吧,测试了没有复现

image

image

@Chen-jj Chen-jj closed this as completed Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-taroize Area - Taro convert 相关 F-vue2 Framework - Vue 2 T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

5 participants