# "Template parse errors: 'ion-list' is not a known element." on module component

**URL:** <https://forum.ionicframework.com/t/template-parse-errors-ion-list-is-not-a-known-element-on-module-component/96007>\
**Category:** ionic-v3\
**Created:** [June 27, 2017, 4:40pm UTC](https://forum.ionicframework.com/t/template-parse-errors-ion-list-is-not-a-known-element-on-module-component/96007 "2017-06-27T16:40:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eliaseas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eliaseas/32/110947_2.png) [@eliaseas](https://forum.ionicframework.com/u/eliaseas)\
**Post date:** [June 27, 2017, 4:40pm UTC](https://forum.ionicframework.com/t/template-parse-errors-ion-list-is-not-a-known-element-on-module-component/96007/1 "2017-06-27T16:40:47Z")

</div>

Hi,

I’m trying to implement a popover as described on Ionic Docs, but no success.

In my application, I have a CoreModule, that is imported on App module. The component used on Popover is declared on this CoreModule:

```auto
// core.module.ts
@NgModule({
  declarations: [
    ProfilePopover
  ],
  entryComponents: [
    ProfilePopover
  ],
  exports: [
    ProfilePopover
  ]
})
export class CoreModule {}

```

```auto
// app.module.ts (resumed)
@NgModule({
  declarations: [
    App,
  ],
  imports: [
    BrowserModule,
    IonicModule.forRoot(App),
    CoreModule,
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    App,
  ],
  providers: [...],
})

```

At my `app.component.ts`, I have a method that presents the popover:

```auto
  public async presentProfilePopover() {
    let popover = this.popoverController.create(ProfilePopover);

    return popover.present();
  }

```

The problem is that my component template, uses obviously `ionic-list`, `ionic-list-headers` and other ionic components.  
When I try to run my code, it fails:

```auto
polyfills.js:3 Error: Uncaught (in promise): Error: Template parse errors:
'ion-list-header' is not a known element:
1. If 'ion-list-header' is an Angular component, then verify that it is part of this module.
2. If 'ion-list-header' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("<ion-list>
    [ERROR ->]<ion-list-header>Ionic</ion-list-header>
    <button ion-item (click)="close()">Learn Ionic</button>
"): ng:///CoreModule/ProfilePopover.html@1:4

```

**Already tried:**

- I’ve found another topic where says that we need to import IonicModule on every model that uses it components, then I tried to import it on my CoreModule, with no success. Same errors.
- Tried using also import `IonicModule.forRoot(ProfilePopover)` as said on that topic too, no success.

What am I doing wrong?

**Solved?**

Looks like the problem was not my code itself. It’s a weird problem on `Ionic Serve`. I spent all my morning tring to put and remove `IonicModule` on my CoreModule and the same bug.

Then after lunch I’ve restarted the `Ionic Serve` and the code run. 😒

---

<div class="post-metadata">

**Author:** ![gabfiocchi](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/gabfiocchi/32/92607_2.png) [@gabfiocchi](https://forum.ionicframework.com/u/gabfiocchi)\
**Post date:** [January 13, 2018, 9:30pm UTC](https://forum.ionicframework.com/t/template-parse-errors-ion-list-is-not-a-known-element-on-module-component/96007/2 "2018-01-13T21:30:13Z")

</div>

Go to `components.module.ts`.

1. You need import the Ionic module.

```auto
import { IonicModule } from 'ionic-angular'

```

1. Add on ngModule imports.

```auto
@NgModule({
  declarations: [
    ...
  ],
  imports: [
    IonicModule
  ],
  exports: [
    ...
  ]
})

```
