ng generate component is not working anymore

未关闭
#4,922 2 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
angular, typescript
领域
cli

调研方向

首先,使用报告中的 Ionic、Angular 和 toolkit 版本重现 ng g c todo.service.ts,然后检查生成的 angular-errors.log 以及 @ionic/angular-toolkit schematic collection。组件生成在没有缺少 appShell schematic 错误的情况下完成,即表示完成。

由索引模型根据 Issue 内容生成。

描述

triage

Description:

>ng g c todo.service.ts
An unhandled exception occurred: Schematic "appShell" not found in collection "@ionic/angular-toolkit".
See "C:\Users\user\AppData\Local\Temp\ng-jnwgAJ\angular-errors.log" for further details.

Steps to Reproduce:

Output:

An unhandled exception occurred: Schematic "appShell" not found in collection "@ionic/angular-toolkit".
See "C:\Users\user\AppData\Local\Temp\ng-jnwgAJ\angular-errors.log" for further details.

My ionic info:

Ionic:

   Ionic CLI                     : 6.20.3 (C:\Users\user\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 6.3.1
   @angular-devkit/build-angular : 14.2.6
   @angular-devkit/schematics    : 14.2.6
   @angular/cli                  : 14.2.6
   @ionic/angular-toolkit        : 7.0.0

Capacitor:

   Capacitor CLI      : 4.3.0
   @capacitor/android : 4.3.0
   @capacitor/core    : 4.3.0
   @capacitor/ios     : not installed

Utility:

   cordova-res : 0.15.4
   native-run  : 1.7.1

System:

   NodeJS : v14.17.1 (C:\Program Files\nodejs\node.exe)
   npm    : 6.14.13
   OS     : Windows 10

Other Information:

主要语言
TypeScript
星标
2k
派生
681
PR 合并指标
30 天内没有已合并 PR

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/ionic-cli 的其他 Issue

查看 ionic-team/ionic-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。