关键词搜索

源码搜索 ×
×

npm publish 发布一个 Angular 库的时候报错

发布2021-10-17浏览792次

详情内容

错误消息:

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的原创文章,尽在:“汪子熙”:

相关技术文章

点击QQ咨询
开通会员
返回顶部
×
微信扫码支付
微信扫码支付
确定支付下载
请使用微信描二维码支付
×

提示信息

×

选择支付方式

  • 微信支付
  • 支付宝付款
确定支付下载