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 Redux 模板 快应用报错 #3773

Closed
YouthBaby opened this issue Jul 11, 2019 · 5 comments
Closed

【快应用】Taro Redux 模板 快应用报错 #3773

YouthBaby opened this issue Jul 11, 2019 · 5 comments
Labels
question Further information is requested

Comments

@YouthBaby
Copy link

问题描述
使用taro redux模板创建快应用,编译成功,运行报错

复现步骤
[复现问题的步骤]
1、使用Taro redux模板创建一个默认demo
2、安装快应用必备依赖(@tarojs/components-qa @tarojs/taro-quickapp)
3、taro build --type quickapp -- --watch (第一次可能会报错,cd dist && npm install)
4、正常情况下会打开快应用,提示【很抱歉,TaroQuickAPP出现错误】

期望行为
运行正常(默认模板是正常的)

报错信息
Screenshot_20190711_161816
Screenshot_20190711_161818
系统信息
Taro CLI 1.3.8 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.16.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
补充信息
[可选]
直接原因可能是@tarojs/taro-quickapp/dist/index.js 中1762行 createContext: true是注释状态。
在dist\build\pages\index\index.js 中会执行 var ReduxContext = Taro__default.createContext(null);
希望可以支持下

@taro-bot
Copy link

taro-bot bot commented Jul 11, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@yuche
Copy link
Contributor

yuche commented Jul 15, 2019

你的项目依赖版本太低了

@yuche yuche added answered question Further information is requested labels Jul 15, 2019
@YouthBaby
Copy link
Author

你的项目依赖版本太低了

是用1.3.8创建的demo, 这个还低吗?依赖都是1.3.8

@YouthBaby
Copy link
Author

你的项目依赖版本太低了

@yuche 刚刚升级了cli 到1.3.9, 创建redux模板,编译快应用,依旧报错,报错截图跟issue中一样
Taro CLI 1.3.9 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.16.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
image

@taro-bot
Copy link

taro-bot bot commented Jul 15, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants