[英]Module not found: Error: Can't resolve '@angular/localize/init' in '/usr/src/app/src'
I've added the @angular/localize package during an update from Angular 8 to 9. My polyfill.ts has the following import:在从 Angular 8 到 9 的更新期间,我添加了 @angular/localize package。我的 polyfill.ts 具有以下导入:
import '@angular/localize/init';
My app is compiling and spinning up fine on a browser locally but when I run a production build I'm getting the following error:我的应用程序在本地浏览器上编译和运行良好,但是当我运行生产版本时,我收到以下错误:
Any idea what isn't being resolved here?知道这里没有解决什么吗? I can see the module installed correctly in the node_modules/@angular/localize directory.
我可以在 node_modules/@angular/localize 目录中看到正确安装的模块。
Run this command in terminal在终端中运行此命令
npm install @angular/localize --save
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.