Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StackBlitz ngcc failed to run on my npm library with Ivy enabled

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

but working with Ivy disabled

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

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

like image 303
Adrian Brand Avatar asked Aug 13 '20 01:08

Adrian Brand


2 Answers

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

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

like image 184
Simon Avatar answered Nov 19 '22 15:11

Simon


I was able to get this to work by going to the settings on the left panel and disabling Enable Ivy then doing a hard refresh on the browser.

like image 36
DrakeAnglin Avatar answered Nov 19 '22 13:11

DrakeAnglin