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 3.0 的 vue 版本 taro create 命令提示创建成功却没有生成文件 #6852

Closed
waantony opened this issue Jul 1, 2020 · 0 comments · Fixed by #6946
Closed

Taro 3.0 的 vue 版本 taro create 命令提示创建成功却没有生成文件 #6852

waantony opened this issue Jul 1, 2020 · 0 comments · Fixed by #6946
Assignees
Labels
A-cli Area - CLI 相关 P-1 High, patch V-3 Version - 3.x
Milestone

Comments

@waantony
Copy link

waantony commented Jul 1, 2020

问题描述

Taro 3.0 的 vue 版本,运行命令提示创建文件成功,但是提示的创建的不是 *.vue 文件而是 *.jsx 文件,而且提示的路径 pages 目录下没有相应页面的目录,也没有 *.vue 文件和 *.jsx 文件。

复现步骤

  1. 运行 taro create --name test 命令
  2. 命令行提示:
✔ 创建文件: G:\codes\taro\taro_vue_demo01\src\pages\test\test.jsx
✔ 创建文件: G:\codes\taro\taro_vue_demo01\src\pages\test\test.scss
  1. 查看相应目录下并没有 test 目录及对应文件。

期望行为

期望创建对应 *.vue 文件 而不是 *.jsx 文件

报错信息

  • 运行命令及提示

运行命令及提示

  • 运行命令后的目录结构
    运行命令后的目录结构

系统信息

  Taro CLI 3.0.0 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 12.17.0 - C:\Program Files\nodejs\node.EXE
      npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli Area - CLI 相关 P-1 High, patch V-3 Version - 3.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants