New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All locales from @angular/common/locales contain extra comma after ['AM', 'PM'] array #22988
Comments
It's by design, Also it's not undefined in many locales like https://github.com/angular/angular/blob/master/packages/common/locales/br.ts |
Hey I understand what your point @trotyl, so perhaps a fix should be made in the JIT interpreter? (at least on my case, building my app on AoT seems to fix the issue, but I also want to use the JIT) |
Please provide reproduction for any of your problem. |
The issue is not with the interpreter: |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Hi,
I'm importing many locales from @angular/common/locales (en, fr, fr-CA, ...) and I'm getting
Uncaught TypeError: Cannot read property 'visitExpression' of undefined raised by zone.js at runtime.
Current behavior
At runtime zone.js raises an error
Uncaught TypeError: Cannot read property 'visitExpression' of undefined
Expected behavior
Can use locales without errors at runtime.
Personnal investigation
It seems that the reason is that default object being exported from locale file contains 2 extra commas at default[2] which is right after ['AM', 'PM'],,
This extra comma is present in ALL files from @angular/common/locales.
example: https://github.com/angular/angular/blob/master/packages/common/locales/fr.ts at line 21-22 commas should be removed
in english version https://github.com/angular/angular/blob/master/packages/common/locales/en.ts
the extra comma is also present at default[1] at line 22
Can you please clean those files from this extra comma?
The text was updated successfully, but these errors were encountered: