Issue
I have been trying to build this library in angular 12. But the only error message I get is [object Object]. What could I try to debug the problem?
> nx run user-pref:build:production
> Building Angular Package
> ------------------------------------------------------------------------------
> Building entry point '@umn/user-pref'
> ------------------------------------------------------------------------------
> ✖ Compiling with Angular sources in Ivy partial compilation mode.
> [object Object]
>
> NX ERROR Running target "user-pref:build" failed
Solution
After days of debugging I finally found the reason.
A component in the library was importing a file from another library using its file location '../../../file.ts' instead of @library-name/file.
Answered By - umunBeing
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.