-
Notifications
You must be signed in to change notification settings - Fork 12k
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
ng extract-i18n: Cannot create property 'message' on string error -> depends on -browserlistrc configuration #23420
Comments
Hi @meriturva, I do agree that extraction shouldn't depend on the browserslist configuration. That said, it's important to point out that by enabling the |
…i18n extraction Since extraction doesn't work on the browser we can ignore the `supportedBrowsers` configuration during message extraction. Closes angular#23420
Hi @alan-agius4 you are right, we are going to remove Thanks! |
…i18n extraction Since extraction doesn't work on the browser we can ignore the `supportedBrowsers` configuration during message extraction. Closes #23420
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. |
🐞 Bug report
Command (mark with an
x
)Description
Clone repo: https://github.com/meriturva/ng14_i18n_browserlist and run the command
npm run extract
you will see the error:Basically, if you comment
not dead
from.browserlistrc
file everything works correctly.https://github.com/meriturva/ng14_i18n_browserlist/blob/master/.browserslistrc#L13
I think the extract phase of i18n strings has not to depend on the customer
.browserlistrc
file.It is better to build a project during extraction in a fixed configuration that makes tools work correctly.
🌍 Your Environment
The text was updated successfully, but these errors were encountered: