Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/32.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/lua/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 在编译(ng serve)期间获取与矩和ngx矩相关的警告和错误,以及timeago管道的断页_Angular_Momentjs - Fatal编程技术网

Angular 在编译(ng serve)期间获取与矩和ngx矩相关的警告和错误,以及timeago管道的断页

Angular 在编译(ng serve)期间获取与矩和ngx矩相关的警告和错误,以及timeago管道的断页,angular,momentjs,Angular,Momentjs,我收到以下编译警告/错误以及损坏的 与timeago管道相关的页面 ./node_modules/ngx moment/fesm2015/ngx-moment.js 224:15-23中的警告 在“时刻”中未找到导出“持续时间” ./node_modules/ngx moment/fesm2015/ngx-moment.js 558:12-18中的警告 “在“时刻”中找不到导出“isDate” ./node_modules/ngx moment/fesm2015/ngx-moment.js 64

我收到以下编译警告/错误以及损坏的 与timeago管道相关的页面

./node_modules/ngx moment/fesm2015/ngx-moment.js 224:15-23中的警告 在“时刻”中未找到导出“持续时间”

./node_modules/ngx moment/fesm2015/ngx-moment.js 558:12-18中的警告 “在“时刻”中找不到导出“isDate”

./node_modules/ngx moment/fesm2015/ngx-moment.js 64:52-60中的警告 “在“时刻”中未找到导出“isMoment”

/node_modules/ngx moment/fesm2015/ngx-moment.js 561:17-25中的警告 “在“时刻”中未找到导出“isMoment”

/node_modules/ngx moment/fesm2015/ngx-moment.js 573:15-23中的警告 “在“时刻”中未找到导出“isMoment”

/node_modules/ngx moment/fesm2015/ngx-moment.js 573:50-56中的警告 “在“时刻”中未找到导出“区域设置”

./node_modules/ngx moment/fesm2015/ngx-moment.js 409:15-24中的警告 “在'moment'中找不到导出'parseZone'

./node_modules/ngx moment/fesm2015/ngx-moment.js 240:16-37中的警告 在“矩”中未找到导出“relativeTimeThreshold”

/node_modules/ngx moment/fesm2015/ngx-moment.js 267:15-19中的警告 “在“时刻”中找不到导出“unix”

/node_modules/ngx moment/fesm2015/ngx-moment.js 306:25-28中的警告 “在“时刻”中未找到导出“utc”

/node_modules/ngx moment/fesm2015/ngx-moment.js 306:47-50中的警告 “在“时刻”中未找到导出“utc”

./node_modules/moment/src/lib/locale/locales.js模块中的警告不正确 发现:错误:无法解析中的“./locale” 'blah\blah\node_modules\moment\src\lib\locale'i「wdm」:使用 警告

这是我的angular堆栈@angular/cli 7.0.7 @ngtools/webpack 7.0.7@schematics/angular
7.0.7@schematics/更新0.10.7 rxjs 6.3.3 typescript 3.1.6网页4.19.1

我正在使用
“时刻”:“^2.19.3”, “ngx时刻”:“^3.5.0”,
在您的package.json中的nodejs 10.20上,更新moment和ngx moment的版本,如下所示:

“时刻:“2.23.0”,
“ngx时刻”:“3.4.0”

谢谢。在按照您的建议进行替换后,问题出现在带有“^2.19.3”、“ngx时刻”:“^3.5.0”的节点10.20上。(y)