14 September, 2022

Error: Module not found: Error: Can't resolve '@angular/localize/init' in Angular 14

Error:  

./src/polyfills.ts:59:0-32 - Error: Module not found: Error: Can't resolve '@angular/localize/init' in 'C:\source\repos\Project1\Project1\ClientApp\src'  

× Failed to compile.


How to Fix it?

This error occurred due to a missing package in the package.json file.

Installing the package and importing it into polyfills.ts are both required. Running is the fastest way to do this.

npm install @angular/localize --save


Finally, it works here is the result:





No comments:

Post a Comment

Microservices vs Monolithic Architecture

 Microservices vs Monolithic Architecture Here’s a clear side-by-side comparison between Microservices and Monolithic architectures — fro...