"ng build --prod"를 사용하여 각도 응용 프로그램을 작성할 때 다음 오류가 발생합니다. Angular 4로 빌드하고 Angular 5에서 오류가 발생하는 경우 작동합니다. Angular 5 "Ng serve"가 완벽하게 작동합니다.부품 각도 5에 대한 모듈을 결정할 수 없습니다.
ERROR in Error: Cannot determine the module for class TimeAgoPipe in mypath/node_modules/time-ago-pipe/time-ago-pipe.ts! Add TimeAgoPipe to the NgModule to fix it.
https://www.npmjs.com/package/time-ago-pipe
모든 솔루션에 대한 오류 얻기?
'declarations : [AppComponent, ... etc ..., TimeAgoPipe], ' –
'선언 배열에 추가 할 수 있도록 이미 있습니다 ... 그렇지 않으면 "ng serve"로 각도 4를 빌드합니다. 오류를 줄 것입니다 ... 오류 5 각도에만 – user2609021
당신은 그것을 재현 할 수있는 최소한의 예제를 제공 할 수 있습니까? – yurzui