# Ionic4 component not a known element

**URL:** <https://forum.ionicframework.com/t/ionic4-component-not-a-known-element/153169>\
**Category:** Ionic Framework\
**Created:** [January 15, 2019, 5:51am UTC](https://forum.ionicframework.com/t/ionic4-component-not-a-known-element/153169 "2019-01-15T05:51:06Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![polonski](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/polonski/32/119134_2.png) [@polonski](https://forum.ionicframework.com/u/polonski)\
**Post date:** [January 15, 2019, 11:09pm UTC](https://forum.ionicframework.com/t/ionic4-component-not-a-known-element/153169/5 "2019-01-15T23:09:13Z")

</div>

Thanks @anna_liebt , @arnhrwd , @indraraj26

So I’ve added in `app.module.ts`

the import:

`import { SomeThingComponent } from './some-thing/some-thing.component';`

the declaration and schema into NgModule

```auto
@NgModule({
  declarations: [AppComponent, SomeThingComponent],
  entryComponents: [],
  imports: [
    BrowserModule,
    IonicModule.forRoot(),
    AppRoutingModule
  ],
  providers: [
    StatusBar,
    SplashScreen,
    { provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
  ],
  bootstrap: [AppComponent],
  schemas: [
    CUSTOM_ELEMENTS_SCHEMA
  ]
})

```

and then the `<some-thing></some-thing>` element in the `app.component.html`

Good news: No errors yayz  
Bad news: `<some-thing></some-thing>` is rendering as an empty element, the component html (which is a button) is not rendering (!)

![image](https://global.discourse-cdn.com/ionicframework/original/3X/6/8/680bbfca4f16f6d81391651a0bb03bb7ac004673.png)

What in the…

---

_[View the full topic](https://forum.ionicframework.com/t/ionic4-component-not-a-known-element/153169)._
