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

IONIC 5/6 - ERROR in Debug Failure. False expression. - error TS2307: Cannot find module 'ionic-angular'. #304

Open
darkguy2008 opened this issue Jul 7, 2020 · 3 comments

Comments

@darkguy2008
Copy link

Ionic version: (check one with "x")
[ ] 2.x
[ ] 3.x
[ ] 4.x
[x] 5.0.7

Ion2-calendar mode: (check one with "x")
[x] components mode
[ ] modal mode

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] help me

Current behavior:
Follow the tutorial, add the module, add the component

Expected behavior:
No build errors

Steps to reproduce:
Create Ionic 5 app, add component.

Related code:

ERROR in Debug Failure. False expression.
    
    ERROR in node_modules/ion2-calendar/dist/calendar.controller.d.ts:1:33 - error TS2307: Cannot find module 'ionic-angular'.
    
    1 import { ModalController } from 'ionic-angular';
                                      ~~~~~~~~~~~~~~~
    node_modules/ion2-calendar/dist/calendar.module.d.ts:2:33 - error TS2307: Cannot find module 'ionic-angular'.
    
    2 import { ModalController } from 'ionic-angular';
                                      ~~~~~~~~~~~~~~~
    node_modules/ion2-calendar/dist/components/calendar.modal.d.ts:2:68 - error TS2307: Cannot find module 'ionic-angular'.
    
    2 import { NavParams, ViewController, Content, InfiniteScroll } from 'ionic-angular';

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

Ionic:

   Ionic CLI : 6.10.1

Utility:

   cordova-res (update available: 0.15.1) : 0.14.0
   native-run                             : 1.0.0

System:

   NodeJS : v12.16.3
   npm    : 6.14.5
   OS     : Windows 10
@darkguy2008 darkguy2008 changed the title ERROR in Debug Failure. False expression. - error TS2307: Cannot find module 'ionic-angular'. IONIC 5 - ERROR in Debug Failure. False expression. - error TS2307: Cannot find module 'ionic-angular'. Jul 7, 2020
@darkguy2008 darkguy2008 changed the title IONIC 5 - ERROR in Debug Failure. False expression. - error TS2307: Cannot find module 'ionic-angular'. IONIC 5/6 - ERROR in Debug Failure. False expression. - error TS2307: Cannot find module 'ionic-angular'. Jul 7, 2020
@ShivamShokeen
Copy link

I am also facing same error with the version "ion2-calendar": "^2.2.0",

@ShivamShokeen
Copy link

Is there any way to manually add ionic-angular library in ion2-calendar dependency?

@ulver2812
Copy link

ulver2812 commented Aug 13, 2020

See here for the solution: #297 (comment)

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

No branches or pull requests

3 participants