ng extract-i18n: Cannot create property 'message' on string error -> depends on -browserlistrc configuration #23420
Labels
area: @angular-devkit/build-angular
devkit/build-angular:i18n
freq1: low
Only reported by a handful of users who observe it rarely
severity5: regression
type: bug/fix
🐞 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: