错误消息:
ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.
Please delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.
这是因为我之前是以 development 模式对我的 Angular 库进行 build:
更换成如下生产模式:
ng build my-lib --configuration production
之后错误消失:
更多Jerry的原创文章,尽在:“汪子熙”: