Reputation: 1576
We have an angular that we upgraded from angular 6 to 7. where we are using the build-in currency
pipe. Everything works fine when serving (ng serve
) and when building in DEV.
But when we try to build in production we are getting The pipe 'currency' could not be found
. Actually none of the pipes are working anymore. The same error is displayed.
The issue did not happen in version 6.
EDIT
I am getting the same error with ng build --aot
Upvotes: 2
Views: 3317
Reputation: 1576
I have found the issue.
We had enableIvy
set to true in tsconfig.json. It was tree tree shaking away the pipes.
Upvotes: 4