Compiler.js:486 Uncaught Error: Template parse errors: 'ion-calendar' is not a known element:


#1

Hello everyone, can you please help me I’m facing now this problem, I tried to install
“ionic3-calendar-en” then when I used this I’ve got this error message.

Uncaught Error: Template parse errors:
‘ion-calendar’ is not a known element:

  1. If ‘ion-calendar’ is an Angular component, then verify that it is part of this module.
  2. If ‘ion-calendar’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.

I used lazyloading…

Please help me. TIA


#2

Suppressing errors is generally bad, so I would take a hard look at what option #1 is asking you to do.


#3

Thank you for replying my question. Yes you’re right but when i insert the “ion-calendar” tag in my app.html it works fine but when i input this in the specific page i’ve got that error. I think because of lazy loading but i don’t know how to fix :frowning:


#4

UPDATE!! UPDATE!! I fixed this problem. I imported the CalendarModule in my specific page that i used ex:Home.module.ts