Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

[support]: Can't bind to 'size' since it isn't a known property of 'ion-title'. #36

Open
u01ser opened this issue Jul 23, 2020 · 2 comments

Comments

@u01ser
Copy link

u01ser commented Jul 23, 2020

I have this error

compiler.js:2175 Uncaught Error: Template parse errors:
Can't bind to 'size' since it isn't a known property of 'ion-title'.

  1. If 'ion-title' is an Angular component and it has 'size' input, then verify that it is part of this module.
  2. If 'ion-title' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("


    <ion-title [ERROR ->][size]="titleSize">{{ title }}
"): ng:///NgxIonicImageViewerModule/ViewerModalComponent.html@7:15 at syntaxError (compiler.js:2175) at TemplateParser.parse (compiler.js:11188) at JitCompiler._parseTemplate (compiler.js:25721) at JitCompiler._compileTemplate (compiler.js:25709) at compiler.js:25653 at Set.forEach () at JitCompiler._compileComponents (compiler.js:25653) at compiler.js:25566 at Object.then (compiler.js:2166) at JitCompiler._compileModuleAndComponents (comp

How can i fixed this problem? I tried to use in app.module.ts CUSTOM_ELEMENTS_SCHEMA and NO_ERRORS_SCHEMA but the error persist

@u01ser u01ser changed the title [support]: [support]: Can't bind to 'size' since it isn't a known property of 'ion-title'. Jul 23, 2020
@SimonGolms
Copy link
Owner

What versions of ionic and angular are you using? Are you using it with innerHTML, as this is not supported.

@alyeaaah
Copy link

i got this error too,

Can't bind to 'size' since it isn't a known property of 'ion-title'.

  1. If 'ion-title' is an Angular component and it has 'size' input, then verify that it is part of this module.
  2. If 'ion-title' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
  3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("


    <ion-title [ERROR ->][size]="titleSize">{{ title }}
"): ng:///NgxIonicImageViewerModule/ViewerModalComponent.html@7:15

this is my package in package.json
"ngx-ionic-image-viewer": "^0.7.4",
and here is my ionic project details

Ionic:

Ionic CLI : 6.14.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 4.7.1
@angular-devkit/build-angular : 0.803.29
@angular-devkit/schematics : 8.3.29
@angular/cli : 8.2.0
@ionic/angular-toolkit : 2.0.0

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 27 other plugins)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants