twinssbc / Ionic2-Calendar

A calendar component based on Ionic framework
https://ionic-calendar-demo.stackblitz.io
MIT License
389 stars 197 forks source link

Cannot find module 'ionic-calendar' (Ionic2-Calendar: 0.5.9 Ionic: 5.4.9) #543

Open innovativethinkingteam opened 4 years ago

innovativethinkingteam commented 4 years ago

Hi,

As per Instructions for version 0.5.x:

  1. npm i ionic5-calendar
  2. If you are using PageModule, you need to import the NgCalendarModule in your page module
import { NgCalendarModule  } from 'ionic2-calendar';

@NgModule({
  declarations: [
    MyPage
  ],
  imports: [
    IonicPageModule.forChild(MyPage),
    NgCalendarModule
  ],
  entryComponents: [
    MyPage
  ]
})
export class MyPageModule {}

Ts error: "Cannot find module 'ionic-calendar'."

twinssbc commented 4 years ago

@Bottley Could you check your ionic2-calendar, @ionic/angular and angular versions? They need to be like the combination described in README.