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 create --name 创建新页面命名不合法问题 #7598

Closed
halfgrass opened this issue Sep 11, 2020 · 0 comments
Closed

taro create --name 创建新页面命名不合法问题 #7598

halfgrass opened this issue Sep 11, 2020 · 0 comments
Assignees
Labels
A-cli Area - CLI 相关 F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@halfgrass
Copy link

相关平台

微信小程序

小程序基础库: 2.13.0
使用框架: React

复现步骤

如: taro create --name 'tt@#$%&*'

taro create -name page-test

期望结果

第一条命名不应该创建成功;
第二条创建失败或者可以按帕斯卡命名创建PageTest页面

实际结果

实际页面模板如下:
export default class Tt%%$ extends Component{}

export default class page-test extends Component{}

环境信息

  Taro CLI 3.0.9 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 10.15.3 - D:\Program Files\nodejs\node.EXE
      Yarn: 1.17.3 - C:\Users\User\scoop\apps\yarn\current\Yarn\bin\yarn.CMD
      npm: 6.4.1 - D:\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 相关 F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants