Angular 2 missing domsanitizer when trying to start

im running angular2 rc 5 everything is fine until I restarted my computer and started npm again, before rebooting the PC everything works fine

when I try to start my project again there is an error saying that

node_modules/@angular/platform-browser/index has no exported member 'DomSanitizer' 

im already trying to reinstall the package and copy the @ angular file from another quick launch that works, but still crashing with the same error

I think something is wrong with my @ angular / platform browser, but I still can not figure it out

+6
source share
1 answer

If you are using angular2 RC5 use this -

  • DomSanitizationService

If you go to angular2 RC6 use this -

  • Domsanitizer

Link: https://github.com/angular/angular/pull/11085

See if that helps.

+27
source

All Articles