I have updated my app (angular 14) to (angular 15)
I already perform this commands
ng update @angular/core@15 @angular/cli@15 --force
ng update @angular/material@15
When I run the app for checking
I got this error
Error: polyfills.ts:100:7 - error TS2717: Subsequent property declarations must have the same type. Property 'providers' must be of type '(Provider | EnvironmentProviders)[]', but here has type 'Provider[]'.
Any idea what am I missing here?
Thank you!
With Angular 15, the file
polyfills.tsis neither generated nor required. You can update your polyfills configurations in theangular.jsonfile. But regardless of where you keep your polyfills configurations, just make sure you use a consistent type for yourproviderproperty as explained in the error you are getting.