ionic-team / ionic-team/angular-toolkit

bug: ionic generate page <name> not working on standalone projects (v8)

未关闭
#512 1 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看
triage
主要语言
TypeScript
星标
73
派生
34
平均合并
6 分钟
30 天内合并 PR
5

描述

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

`ionic generate page pagename`

ng generate page pagename --project=app
Could not find your routes file. Use the skip-import option to skip importing.
[ERROR] Could not generate page.

`ionic generate page pagename --skip-import`

ng generate page pagename --skip-import --project=app
Error: Unknown argument: skip-import
[ERROR] Could not generate page.

### Expected Behavior

New page will be created

### Steps to Reproduce

1. type on console: `ionic generate page pagename`

### Code Reproduction URL

no url

### Ionic Info

Ionic:

Ionic CLI : 7.2.0 (/Users/hesesses/.nvm/versions/node/v18.20.4/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.2.5
@angular-devkit/build-angular : 17.3.8
@angular-devkit/schematics : 17.3.8
@angular/cli : 17.3.8
@ionic/angular-toolkit : 11.0.1

Capacitor:

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

Utility:

cordova-res : not installed globally
native-run : 2.0.1

System:

NodeJS : v18.20.4 (/Users/hesesses/.nvm/versions/node/v18.20.4/bin/node)
npm : 10.7.0
OS : macOS Unknown

### Additional Information

_No response_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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