-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 h5 无法运行 #1424
Comments
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
把报错贴出来 |
|
继续测试转换平台 4.我感觉转换成小程序都能运行两款已经成功,是不是 es5 es6 语法问题。 |
你用的哪个版本转的 |
taro 1.2 beta 11,我昨天以为linux下有问题,我就在自己win电脑下安装了最新版.,和linux下一样,会出现以上错误 |
@mienv567 Taro.getApp() 在 H5 里还没有实现,你可以换种写法,另外那个报错,你得自己定位下问题 |
我不用h5可以,我想用react-native,目前有没有完美的处理pages下的转换方法除css外,我一会儿贴出react转换个别页面转换中出错的地方. |
嗯,react-native 我也发现是wxml代码的问题,标签括号花括号排序问题,这是经过convert转换后的代码。可能自己在写wxml排列的问题吧 |
小程序正常截图
![qq 20181209182608](https://user-images.githubusercontent.com/7724835/49696127-2104aa00-fbe0-11e8-86b9-31686e57cd18.png)
h5截图
![taro-h5](https://user-images.githubusercontent.com/7724835/49696021-8ce61300-fbde-11e8-82f0-722242b848a2.png)
index.js?e6ae:50 Uncaught (in promise) TypeError: Super expression must either be null or a function at _inherits (index.js?e6ae:50) at eval (index.js?e6ae:833) at createWrappedComponent (index.js?e6ae:974) at eval (index.js?e6ae:1030) index.js?5063:7 Uncaught (in promise) TypeError: _taroH2.default.getApp is not a function at eval (index.js?5063:7) at Object../.temp/pages/myQuestion/index.js (myQuestion_index.js:11) at __webpack_require__ (app.js:768) at fn (app.js:131) at fn.t (app.js:175)
微信原生小程序转taro后,taro转小程序可以运行,h5不行。
The text was updated successfully, but these errors were encountered: