question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: ng add @ionic/angular@next throws error when add to Angular project (Angular 9 Ivy + Ionic RC4), have PR

See original GitHub issue

Bug Report

Ionic version:

[x] 5 RC4

Current behavior:

With @next

ng add @ionic/angular@next --project=mobile throws the following error:

E:\my-workspace>ng add @ionic/angular@next --project=mobile
Installing packages for tooling via npm.
Installed packages for tooling via npm.
Could not find file for path: projects/mobile/projects/mobile/src/app/app.module.ts

With normal

ng add @ionic/angular --project=mobile throws the following error:

E:\my-workspace>ng add @ionic/angular --project=mobile
Installing packages for tooling via npm.
Installed packages for tooling via npm.
The package that you are trying to add does not support schematics. You can try using a different version of the package or contact the package author to add ng-add support.

Steps to reproduce:

ng new my-workspace --createApplication="false"
cd my-workspace
ng generate application mobile
ng add @ionic/angular --project=mobile

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
liamdebeasicommented, Feb 11, 2020

Thanks for the issue. This has been resolved via https://github.com/ionic-team/ionic/pull/20436 and will be available in an upcoming release of Ionic Framework.

0reactions
ionitron-bot[bot]commented, Mar 12, 2020

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

bug: ng add @ionic/angular@next throws error when ... - GitHub
bug: ng add @ionic/angular@next throws error when add to Angular project (Angular 9 Ivy + Ionic RC4), have PR #20435.
Read more >
Angular 9 ng new myapp gives error The Schematic workflow ...
First ,verify your NPM cached memory npm cache verify. then try : npm cache clean --force npm install –g @angular/cli@latest ng new ...
Read more >
ng add - Angular
Option Description Value Type Default Value ‑‑force Force overwriting of existing files. boolean false ‑‑interactive Enable interactive input prompts. boolean true ‑‑registry The NPM registry to...
Read more >
@ionic/angular - npm
Start using @ionic/angular in your project by running `npm i ... ng new add-test // Say yes to including the router, we need...
Read more >
Massive updates with version 11 of Angular - Ionic Blog
ng update @angular/core @angular/cli npm install ... But since Ivy shipped in version 9, the team has been able to refocus their efforts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found