stackblitz / core

Online IDE powered by Visual Studio Code ⚡️
https://stackblitz.com
MIT License
10.33k stars 927 forks source link

[Bug Tracker]: Angular Ivy #1114

Open EricSimons opened 5 years ago

EricSimons commented 5 years ago

Running into bugs/inconsistencies with Ivy on StackBlitz? Post the StackBlitz URL and repro description in this issue 💪

ocombe commented 4 years ago

I tried to create an app with ivy and the new package localize: https://stackblitz.com/edit/ivy-ovy4cd but it takes forever to load and finally fails with the error t._tfs.transpiledCache[Object(...)(...)] is undefined

edit: after reloading the app a few times and waiting super long, it finally worked!

GregOnNet commented 4 years ago

Hi @EricSimons,

thank you for providing this issue to collect Ivy-related problems. I might have encountered an issue with Angular 9rc.9.

Short Description

The following setup for Angular 9 & Ivy enabled shows an error: https://stackblitz.com/edit/ivy-not-working-reproduction-stackblitz-issue-1114 (now it is working see Update 2)

Update 1 - Workaround

If Ivy is disabled in tsconfig.json. The App is working fine.

Update 2 - Solution

If the angularCompilerOptions are moved from tsconfig.json to tsconfig.app.json the app works fine. 🔥

### Original repo

~~The Blitz mentioned above is a simplified version of https://stackblitz.com/github/co-IT/ngrx-ducks-example-ivy. I removed as many dependencies as possible avoiding side effects caused by other libraries. The Angular App can be started locally without errors: https://github.com/co-IT/ngrx-ducks-example-ivy.~~

Shown Error

image

BenRacicot commented 4 years ago

@GregOnNet would you mind sharing an NG9 SB project? That would be great!

GregOnNet commented 4 years ago

Hi,

if you create a new Angular Project, you can activate Ivy in the settings.

It shouldn't be needed to configure Ivy manually anymore.

I hope the screenshot below helps.

Screenshot_20200410-040053

Cheers Gregor

kc0tlh commented 1 year ago

Tagging some related Angular Ivy issues for housekeeping purposes: #1227, #1229, #1663, #1843, #2541