If 'ion-back-button' is an Angular component, then verify that it is part of this module

Hi am facing below error

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

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

    [ERROR ->]

    Blocking Res"): ng:///AppModule/chatHistoryPage.html@98:6
    at syntaxError (vendor.js:113699)
    at TemplateParser.parse (vendor.js:131874)
    at JitCompiler._parseTemplate (vendor.js:137440)
    at JitCompiler._compileTemplate (vendor.js:137427)
    at vendor.js:137370
    at Set.forEach ()
    at JitCompiler._compileComponents (vendor.js:137370)
    at vendor.js:137280
    at Object.then (vendor.js:113690)
    at JitCompiler._compileModuleAndComponents (vendor.js:137279)

My code is

    <ion-buttons slot="start">
       <ion-back-button defaultHref="home"></ion-back-button> 
    <ion-title>Blocking Resolver</ion-title>

SO please help me

Which Ionic Version so you use?

My ionic info is


Ionic CLI : 5.4.8 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.4
@ionic/app-scripts : 3.2.3


Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 6.2.3, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, (and 8 other plugins)


cordova-res : 0.8.1
native-run : 0.2.8 (update available: 0.3.0)


Android SDK Tools : 26.1.1 (/Users/sathguru/Library/Android/sdk)
ios-deploy : 1.9.4
ios-sim : 8.0.2
NodeJS : v10.13.0 (/usr/local/bin/node)
npm : 6.13.2
OS : macOS High Sierra
Xcode : Xcode 10.1 Build version 10B61

You are using ionic angular 3.9.4 means your are using ionic 3 and ion-back-button is supported in ionic 4.
Please update your ionic angular.

1 Like

here what is ionic CLI and ionic Framework?

what is the difference.

Please check here https://ionicframework.com/docs/intro
Ionic CLI and framework are kind of same things.
But as you are using ionic-angular you need to update that to use latest components.
That means you need to migrate from ionic 3 to ionic 4

Thanks for your information.
I have some doubts regarding get method.

Can you help me this please