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

Unable to generate standalone component with ionic generate or ng generate #5073

Closed
jerrynavi opened this issue Jan 10, 2024 · 7 comments
Closed
Labels

Comments

@jerrynavi
Copy link

Description:
Running ionic generate component <component-name> or ng generate component <component-name> with the --standalone flag always throws the error: "Error: Unknown argument: standalone".

Steps to Reproduce:
Run ionic generate component test --standalone in an Ionic project.

Output:
Error: Unknown argument: standalone

My ionic info:

Ionic:

   Ionic CLI                     : 7.1.5 (/opt/homebrew/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 7.6.1
   @angular-devkit/build-angular : 17.0.7
   @angular-devkit/schematics    : 17.0.7
   @angular/cli                  : 17.0.7
   @ionic/angular-toolkit        : 11.0.0

Utility:

   cordova-res                          : 0.15.4
   native-run (update available: 2.0.0) : 1.5.0

System:

   NodeJS : v18.19.0 (/opt/homebrew/Cellar/node@18/18.19.0/bin/node)
   npm    : 10.2.3
   OS     : macOS Unknown

Other Information:
Nothing to report

@ionitron-bot ionitron-bot bot added the triage label Jan 10, 2024
@WMOH-DEV
Copy link

same here, can not generate component

standalone is not defined

@joelcoxokc
Copy link

hey ionic team any updates on this... Generating components is not working

@dodomui
Copy link

dodomui commented Jan 29, 2024

Same here.

@migueldv90
Copy link

I was able to fix this issue by updating the angular and ionic libraries.

ng update and npm update

I want to say it was fixed in feat-ng-vite-support #5064

@dodomui
Copy link

dodomui commented Jan 31, 2024

fixed by updated to "@ionic/angular-toolkit": "^11.0.1",

@jerrynavi
Copy link
Author

Closing as it's been fixed on "@ionic/angular-toolkit": "^11.0.1"

@forrest-lyman
Copy link

You should reopen this ticket; I just did a fresh build with npx and it installed the angular toolkit 9.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants