momentum-design / momentum-ui

Momentum UI is a collection of UI libraries for implementing Momentum Design into web applications and websites.
https://momentum.design
MIT License
199 stars 204 forks source link

Getting this error Cannot find module '@angular/platform-browser/src/security/dom_sanitization_service' with Angular 8. #444

Closed eswoohy closed 4 years ago

eswoohy commented 4 years ago

Getting the below error when I import the SidebarNavItemComponent in my Angular 8 test sample project.

ERROR in node_modules/@momentum-ui/angular/pagination/pagination.service.d.ts(26,37): error TS2307: Cannot find module '@angular/platform-browser/src/security/dom_sanitization_service'

Adrian1907 commented 4 years ago

https://github.com/scaleflex/ng-cloudimage-responsive/issues/6 is about the same and is closed, but it is not clear what to do to resolve the error

bfbiggs commented 4 years ago

Closing as angular library has been forked and removed.

Amir425 commented 2 years ago

😍😍yes I have a solution, just follow the error path

ERROR in node_modules/angular-calendar-year-view/lib/angular-calendar-year-view.component.d.ts(5,28): error TS2307: Cannot find module '@angular/platform-browser/src/security/dom_sanitization_service'.

in your code editor, You will find this line showing error

"readonly style: import("@angular/platform-browser/src/security/dom_sanitization_service").SafeStyle;"

comment this whole line and paste under this commented line

readonly style: SafeStyle; βœ”βœ”βœ”βœ”