[PROBLEM / ERROR] Import a custom component


#1

Error: Template parse errors:
‘it-map’ is not a known element:

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

[ERROR ->]<it-map (onMapReady)=“onMapReady();” (onMapIdle)=“onMapIdle()” (onDragStart)=“onDragStart()”></it-map"): ng:///C:/Github/chuperman1/Ionic_Facebook_Firebase/src/pages/googlemap/googlemap.html@31:2
at Error (native)
at syntaxError (C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:1550:34)
at TemplateParser.parse (C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:12041:19)
at AotCompiler._compileComponent (C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:22867:39)
at C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:22764:55
at Array.forEach (native)
at AotCompiler._compileSrcFile (C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:22748:20)
at C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:22725:91
at Array.map (native)
at C:\Github\chuperman1\Ionic_Facebook_Firebase\node_modules@angular\compiler\bundles\compiler.umd.js:22725:56


#2

You need to add a line in

@NgModule({
.....

schemas:[CUSTOM_ELEMENTS_SCHEMA]

})