StackBlitz ngcc 无法在启用 Ivy 的 npm 库上运行 [英] StackBlitz ngcc failed to run on my npm library with Ivy enabled

查看:42
本文介绍了StackBlitz ngcc 无法在启用 Ivy 的 npm 库上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经向 npm 发布了一个 Angular 10 库,它在启用了 Ivy 的本地 Angular 10 项目中运行良好,但如果我尝试在 StackBlitz 上使用它,我必须禁用 Ivy.

I have published an Angular 10 library to npm and it works fine in a local Angular 10 project with Ivy enabled but if I try and use it on StackBlitz I have to disable Ivy.

https://stackblitz.com/edit/angular-ivy-tapxx5?file=tsconfig.json

但无法与常春藤合作

https://stackblitz.com/edit/angular-ivy-vbpzem?file=tsconfig.json

不知道为什么我必须为 StackBlitz 关闭 Ivy,但我可以在本地 CLI Ivy 项目中正常使用它.

Not sure why I would have to turn Ivy off for StackBlitz but I can use it fine in a local CLI Ivy project.

推荐答案

这显然是最近反复出现的问题,提交到他们的 GitHub 存储库.与常春藤合作的类似案例不断增加.

This is apparently a recent recurring issue which has been filed on their GitHub repo. Similar cases are rising, working with Ivy off.

我认为可以安全地假设问题出在他们的身上,只要包在常规环境中运行良好.

I think it is safe to assume the problem is from their part, as long as packages are running fine on regular environments.

https://github.com/stackblitz/core/issues/1364

编辑:如Ahmed 指出,由 StackBlitz 团队在 Twitter 上确认

Edit: as Ahmed pointed out, confirmed by the StackBlitz team on Twitter

这篇关于StackBlitz ngcc 无法在启用 Ivy 的 npm 库上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆