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
This appears to occur with inlineCss aka using the styles property of the @component decorator.
"angular-resource://: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
> .buttons { display: flex; flex-direction: row; flex-wrap: nowrap }"
🔬 Minimal Reproduction
The offending code is described in the component:
@Component({
template: "this does not matter",
styles: [
".buttons { display: flex; flex-direction: row; flex-wrap: nowrap }"
]
})
moving the style to an independent file, resolves the issue:
@Component({
template: "this does not matter",
styleUrls: ["./icon-toolbar.component.scss"]
})
once set up, simply run "ng extract-i18n"
🔥 Exception or Error
"angular-resource://: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
> .buttons { display: flex; flex-direction: row; flex-wrap: nowrap }"
🐞 Bug report
Command (mark with an
x
)Is this a regression?
Yes, in angular v11 this does not happen.
Description
This appears to occur with inlineCss aka using the styles property of the @component decorator.
🔬 Minimal Reproduction
The offending code is described in the component:
moving the style to an independent file, resolves the issue:
once set up, simply run "ng extract-i18n"
🔥 Exception or Error
🌍 Your Environment
Anything else relevant?
Per the upgrade instructions from v11 to v12, I have added
to my architect.build property within angular.json
The text was updated successfully, but these errors were encountered: