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.

Won't work with ionic 4: Cannot find module 'ionic-angular'

See original GitHub issue

The plugin breaks with ionic 4, ionic-angular became @ionic/angular.

Error when i try to use it:

[ng] ERROR in ./node_modules/ionic-image-loader/dist/image-loader.module.js
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/private/var/www/youchange/hibrido/node_modules/ionic-image-loader/dist'
[ng] ERROR in ./node_modules/ionic-image-loader/dist/providers/image-loader.js
[ng] Module not found: Error: Can't resolve 'ionic-angular' in '/private/var/www/youchange/hibrido/node_modules/ionic-image-loader/dist/providers'
[ng] ERROR in ./node_modules/ionic-image-loader/dist/providers/image-loader.js
[ng] Module not found: Error: Can't resolve 'rxjs/Observable' in '/private/var/www/youchange/hibrido/node_modules/ionic-image-loader/dist/providers'
[ng] ERROR in ./node_modules/ionic-image-loader/dist/providers/image-loader.js
[ng] Module not found: Error: Can't resolve 'rxjs/add/operator/first' in '/private/var/www/youchange/hibrido/node_modules/ionic-image-loader/dist/providers'
[ng] ℹ 「wdm」: Failed to compile.
[ng]
[ng] ERROR in node_modules/ionic-image-loader/dist/providers/image-loader.d.ts(4,26): error TS2307: Cannot find module 'ionic-angular'.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:26 (6 by maintainers)

github_iconTop GitHub Comments

10reactions
v4varincommented, Jan 10, 2019

Try import { NavController } from ‘@ionic/angular’;

instead of import { NavController } from ‘ionic-angular’

10reactions
krishnakanthTMcommented, Oct 8, 2018

Is this issue solved ? now am getting Cannot find module '@ionic/angular'. ...ectable/src/app/components/ionic-selectable/ionic-selectable-page.component.d.ts import { Content, InfiniteScroll, NavParams } from '@ionic/angular';

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find module 'ionic-angular'.ts when version upgraded ...
Follow these detailed migration steps in order to upgrade from Ionic 3 to 4: https://ionicframework.com/docs/building/migration.
Read more >
Cannot find module 'ionic-angular'
There is no longer 'ionic-angular' exists in ionic 4 or greater. it has been changed to '@ionic/angular'. Try to import using, import {...
Read more >
Cannot find module 'ionic-angular'.ts when version upgraded ...
I have this code in Ionic 3. In Ionic 4,. Cannot find module 'ionic-angular'.ts(2307). How can I make it work in ionic 4?...
Read more >
How to build an Ionic Mobile App - For Beginners
A step by step guide to building an ionic (hybrid) mobile app with video demonstration and how to avoid common errors faced during...
Read more >
How to create an Ionic 5 app - For beginners - Enappd
For now, the Angular and React are well stable in Ionic Community and widely used in the industry but the Ionic Vue is...
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