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

ng add igniteui-angular is throwing exception for 14 #11761

Closed
Lipata opened this issue Jun 22, 2022 · 0 comments · Fixed by #11780
Closed

ng add igniteui-angular is throwing exception for 14 #11761

Lipata opened this issue Jun 22, 2022 · 0 comments · Fixed by #11780
Assignees
Labels
🐛 bug Any issue that describes a bug schematics version: 14.0.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@Lipata
Copy link
Member

Lipata commented Jun 22, 2022

Description

ng add igniteui-angular is throwing exception for 14, because "defaultProject" config in angular.json is deprecated.

  • igniteui-angular version: 14.0.1

Steps to reproduce

  1. npm i -g @angular/cli
  2. npm i -g @igniteui/angular-schematics
  3. ng new
  4. ng add igniteui-angular

Result

Cannot read properties of undefined (reading 'targets')

Expected result

igniteui-angular project is added to the project generated with angular cli.

Temporary workaround

After ng new, go to the angular.json and add manually:

  "projects": {
	...
  },
  "defaultProject": "proj_14"
@Lipata Lipata self-assigned this Jun 22, 2022
@Lipata Lipata added the 🛠️ status: in-development Issues and PRs with active development on them label Jun 22, 2022
@Lipata Lipata mentioned this issue Jun 24, 2022
14 tasks
@Lipata Lipata added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🆕 status: new 🛠️ status: in-development Issues and PRs with active development on them labels Jun 27, 2022
Lipata added a commit that referenced this issue Jun 28, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@Lipata Lipata added 🛠️ status: in-development Issues and PRs with active development on them and removed 💥 severity: critical ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. labels Jul 8, 2022
@Lipata Lipata added ❌ status: awaiting-test PRs awaiting manual verification ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🛠️ status: in-development Issues and PRs with active development on them ❌ status: awaiting-test PRs awaiting manual verification labels Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Any issue that describes a bug schematics version: 14.0.x ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant