Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[innerHtml] causing error from angular 8 #31366

Closed
Domainv opened this issue Jul 1, 2019 · 5 comments

Comments

Projects
None yet
4 participants
@Domainv
Copy link

commented Jul 1, 2019

馃悶 bug report

Affected Package

angular/*@8.0.0

Is this a regression?

This used to work in:
angular/*@7.2.6

Description

After migrating to Angular 8, [innerHtml] binding starts causing error

馃敩 Minimal Reproduction

馃敟 Exception or Error


ERROR in demo/src/__ng_typecheck__.ts(857,9): error TS2551: Property 'innerHtml' does not exist on type 'HTMLParagraphElement'.

馃實 Your Environment

Angular CLI: 8.0.2
Node: 10.16.0
OS: linux x64
Angular: 8.0.0
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package Version

@angular-devkit/architect 0.800.2
@angular-devkit/build-angular 0.800.2
@angular-devkit/build-optimizer 0.800.2
@angular-devkit/build-webpack 0.800.2
@angular-devkit/core 8.0.1
@angular-devkit/schematics 8.0.1
@angular/cli 8.0.2
@ngtools/json-schema 1.1.0
@ngtools/webpack 8.0.2
@nguniversal/common 7.1.1
@nguniversal/express-engine 7.1.1
@nguniversal/module-map-ngfactory-loader 7.1.1
@schematics/angular 8.0.1
@schematics/update 0.800.2
ng-packagr 5.1.0
rxjs 6.4.0
typescript 3.4.5
webpack 4.30.0

@alexzuza

This comment has been minimized.

Copy link
Contributor

commented Jul 1, 2019

Looks like your Angular version doesn't contain these changes 2e9f3f6

Can you please try to update Angular to the latest version and check it again?

@santoshyadav198613

This comment has been minimized.

Copy link
Contributor

commented Jul 1, 2019

Hi @Domainv ,

actually, the property is [innerHTML ]https://www.w3schools.com/jsref/prop_html_innerhtml.asp.

Maybe it was working because Angular 7 had no strict check for templates. change to [innerHTML]

@Domainv

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

Thank you for answers

@JoostK

This comment has been minimized.

Copy link
Member

commented Jul 1, 2019

It appears as if you are using Ivy (in production? 馃檧), as the error you're seeing is from the new typecheck infrastructure introduced for Ivy in 8.0. You should have more success with 8.1.0-rc.0.

@JoostK JoostK closed this Jul 1, 2019

@Domainv

This comment has been minimized.

Copy link
Author

commented Jul 1, 2019

@JoostK Yes, we use Ivy on ngx-bootstrap :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can鈥檛 perform that action at this time.