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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With