-
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
taro3 cli 初始化项目出错,使用的react/redux/less 模板 #5717
Comments
CC @luckyadam |
欢迎提交 Issue~ 如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏 如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。 Good luck and happy coding~ |
没能复现,redux 模板是在 git 的仓库里,init 的时候会远程拉取,你可以在网络好的情况下多尝试一下几次 |
模板已经拉下来了...是解析出的错 我刚刚换了node版本... 10.19.0 12.15.0 可以了. 能帮我看下我不可以的这两个版本你可以正常运行吗? |
@dr2009 好像是。你可以继续看看其他issue里面有讲到node13好像有新功能对这个编译有影响的。我用的是10.14。 |
检查一下有没有这两个文件夹 |
node的版本有影响这个,用回node10才能用。 |
NervJS/taro-project-templates@38d6859 |
可以了... 👍 |
是目录中出现了 package.json 的话,文件的格式必须是一个正常的 json 文件 |
问题描述
taro3 cli 初始化项目出错,使用react/redux/less 模板
复现步骤
taro init taro3-demo
? 请选择框架 React
? 是否需要使用 TypeScript ? Yes
? 请选择 CSS 预处理器(Sass/Less/Stylus) Less
? 请选择模板 redux
期望行为
项目正常初始化
报错信息
模板解析错误
![Xnip2020-03-16_19-10-01.jpg](https://camo.githubusercontent.com/7c2a46aefef3db073450fd4bc04b21adc7a6768f9db057c82c2383fc5e35d491/68747470733a2f2f692e6c6f6c692e6e65742f323032302f30332f31362f3754527367577245634d714a4f4b5a2e6a7067)
系统信息
Taro CLI 3.0.0-alpha.7 environment info:
System:
OS: macOS 10.15.3
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 13.11.0 - ~/.nvm/versions/node/v13.11.0/bin/node
npm: 6.13.7 - ~/.nvm/versions/node/v13.11.0/bin/npm
补充信息
应该是模板解析错误... postion 183 是
<%= typescript %>
The text was updated successfully, but these errors were encountered: