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

CLI (angular schematics) do not report errors or warnings if they cannot upgrade packages in a project #1167

Closed
turbobobbytraykov opened this issue Nov 1, 2023 · 2 comments

Comments

@turbobobbytraykov
Copy link

Description

Calling either ig upgrade-packages or ng g @igniteui/angular-schematics:upgrade-packages on a project where IG angular packages cannot be upgraded (https://github.com/IgniteUI/igniteui-angular-examples) that doe not meet the requirements for calling them does not produce output to identify what went wrong or what should be done to remediate the situation

  • Ignite UI CLI version: 12.0.6
  • Framework: Angular
  • Project type: ig-ts|igx-ts - not sure

Steps to reproduce

  1. clone the git repo https://github.com/IgniteUI/igniteui-angular-examples
  2. go to the "browser" directory
  3. Execute either ig upgrade-packages or ng g @igniteui/angular-schematics:upgrade-packages

Result

Calling ig upgrade-packages does not output any messages at all.

Calling ng g @igniteui/angular-schematics:upgrade-packages produces the following:

An unhandled exception occurred: Collection "@igniteui/angular-schematics" cannot be resolved.
See "C:\Users\XXX\AppData\Local\Temp\ng-XzHjMs\angular-errors.log" for further details.

the error log file states:

[error] Error: Collection "@igniteui/angular-schematics" cannot be resolved.
at SchematicEngineHost.resolve (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular-devkit\schematics\tools\node-module-engine-host.js:75:19)
at SchematicEngineHost._resolveCollectionPath (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular-devkit\schematics\tools\node-module-engine-host.js:80:37)
at SchematicEngineHost.createCollectionDescription (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular-devkit\schematics\tools\file-system-engine-host-base.js:118:27)
at SchematicEngine._createCollectionDescription (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular-devkit\schematics\src\engine\engine.js:161:40)
at SchematicEngine.createCollection (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular-devkit\schematics\src\engine\engine.js:154:43)
at GenerateCommandModule.getSchematics (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular\cli\src\commands\generate\cli.js:139:48)
at async GenerateCommandModule.getSchematicsToRegister (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular\cli\src\commands\generate\cli.js:179:76)
at async GenerateCommandModule.builder (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular\cli\src\commands\generate\cli.js:35:55)
at async runCommand (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular\cli\src\command-builder\command-runner.js:73:5)
at async default_1 (C:\Work\git\igniteui-angular-examples\browser\node_modules@angular\cli\lib\cli\index.js:70:16)

Expected result

Warnings or errors in the console output that will lead to the root cause: if (and potentially why) the project is not compatible with the upgrade process.

Attachments

N/A

Copy link

There has been no recent activity and this issue has been marked inactive.

Copy link

github-actions bot commented Mar 2, 2024

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants