# Ionic Star rating

**URL:** <https://forum.ionicframework.com/t/ionic-star-rating/210655>\
**Category:** Ionic Angular\
**Created:** [June 4, 2021, 7:59pm UTC](https://forum.ionicframework.com/t/ionic-star-rating/210655 "2021-06-04T19:59:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![KarmaTensel](https://avatars.discourse-cdn.com/v4/letter/k/4491bb/32.png) [@KarmaTensel](https://forum.ionicframework.com/u/KarmaTensel)\
**Post date:** [June 4, 2021, 7:59pm UTC](https://forum.ionicframework.com/t/ionic-star-rating/210655/1 "2021-06-04T19:59:50Z")

</div>

I installed ionic-rating package from \> [ionic-rating - npm](https://www.npmjs.com/package/ionic-rating/v/2.0.0)

I followed the instruction in the link but I keep getting errors shown below:

```auto
NG0304: 'ion-rating' is not a known element:
1. If 'ion-rating' is an Angular component, then verify that it is part of this module.
2. If 'ion-rating' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.

```

Similar error using ‘ionic5-star-rating’ package.

I could not figure out the problem. Can anyone help me understand what is wrong?

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [June 4, 2021, 8:50pm UTC](https://forum.ionicframework.com/t/ionic-star-rating/210655/2 "2021-06-04T20:50:57Z")

</div>

Searching the forums for “CUSTOM\_ELEMENTS\_SCHEMA” should give you a bunch of ideas. I suspect you’re using lazy loading and forgetting to import the module for that rating component where you’re actually using it.

Personally, I don’t think lazy loading provides anywhere near as much benefit to 95% of apps, and has no business being promoted as heavily as it is. I would just throw everything in the `AppModule` and forget about all the headache. However, if you want to continue using lazy loading, follow the instructions in the docs you linked _exactly_:

> Once installed you need to import our module **in the parent module for the component you will be using it in**
