Trying to build an Angular project and I'm getting the errors below. This project built fine last week. I made some changes to other projects that use the Dlls from this project, but no changes to this project. I already spent a lot of time troubleshooting it with no luck and appreciate any help.
ERROR: PostCSS received undefined instead of CSS string An unhandled exception occurred: PostCSS received undefined instead of CSS string
This can sometimes happen if node-sass
was compiled for a different version of Node.js than you're currently running (ie if you've recently changed your Node.js version). You can fix that with:
npm rebuild node-sass
if you are using webpack, and trying to use sass-loader
, also add sass
I had this same issue when attempting to test an Angular library, and the issue was I had [``]
instead of []
in the styles
property of my component metadata.
Wrong
@Component({
selector: 'my-input',
template: `
<input
... />
`,
styles: [``],
Right
@Component({
selector: 'my-input',
template: `
<input
... />
`,
styles: [],
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With