问题描述
更新我的角度项目后,由于重大更改,我遇到了一些问题.现在我的MomentDateTimeAdapter出现问题.我正在使用此一个.(/ng-pick-datetime-片刻).
after updating my angular project I faced some probles due to the breaking changes. Now I have got an Problem with my MomentDateTimeAdapter. I'm using this one.(/ng-pick-datetime-moment).
我的应用程序在开发人员模式下运行完美,但是当我尝试构建高效的( ng build --prod
)时,我收到此错误消息:
My application is running perfectly in dev mode but as soon as i try to build productive (ng build --prod
) Im getting this error:
我采取了angular-update教程中描述的所有步骤,并更新了我的所有依赖项.有人知道如何解决这个问题吗?
I took every step described in the angular-update tutorial and updated all my dependencies. Does anyone know how to fix this?
推荐答案
我不知道为什么,但是我发现了此github条目.
I don't exactly know why but I found this github entry.
只需在我的 tsconfig.app中添加:
构建再次正常工作."paths":{"@ angular/*":["../node_modules/@angular/*"]}
.json
By just adding: "paths": { "@angular/*": ["../node_modules/@angular/*"] },
into my tsconfig.app.json
the build is working again.
这篇关于Angular 8更新后未构建Angular MomentDateTimeAdapter的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!