You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running ng extract-i18n with at least one component that has inline styles will not succeed.
🔬 Minimal Reproduction
$ npx --package @angular/cli ng new repro
$ cd repro
$ yarn ng add @angular/localize
# if using BSD sed (e.g. macOS)
$ sed -i '' -e 's#styleUrls#styles#' -e 's#./app.component.css#:host {display: block}#' src/app/app.component.ts
# if using GNU sed (e.g. linux)
$ sed -i -e 's#styleUrls#styles#' -e 's#./app.component.css#:host {display: block}#' src/app/app.component.ts
$ yarn ng extract-i18n
🔥 Exception or Error
angular-resource:style,73733df977cae17daeb15e30f8c5975c:1:0 - Error: Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> :host {display: block}
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, this worked in angular 11.x
Description
Running
ng extract-i18n
with at least one component that has inlinestyles
will not succeed.🔬 Minimal Reproduction
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
It looks like #20972 will fix this in 12.1
The text was updated successfully, but these errors were encountered: