npm publish 发布一个 Angular 库的时候报错
生活随笔
收集整理的這篇文章主要介紹了
npm publish 发布一个 Angular 库的时候报错
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
錯誤消息:
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的原創文章,盡在:“汪子熙”:
總結
以上是生活随笔為你收集整理的npm publish 发布一个 Angular 库的时候报错的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Angular 为什么要引入 injec
- 下一篇: 介绍一个使用 cl_abap_corre