angular 9 library publish error “Trying to publish a package that has been compiled by Ivy”

UPDATE ANGULAR 12

using the --configuration production option while building the library fixed my issue

ng build --configuration production

Original answer:

using --prod option while building the library fixed my issue

ng build yourLibraryName --prod

Leave a Comment

error code: 521