1

node version 14.15.0 and angular version 12.0.5; earlier it worked fine but after reinstallation of angular and nodejs it shows this error on ng serve command.

ERROR in ./src/assets/styles/style.scss (./node_modules/@angular-devkit/build-angular/src/angular-cli-files/plugins/raw-css-loader.js!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/dist/cjs.js??ref--15-3!./src/assets/styles/style.scss)
Module Error (from ./node_modules/postcss-loader/src/index.js):
(Emitted value instead of an instance of Error) CssSyntaxError: D:\node-v15.11.0-win-x64\ssc1\src\assets\styles\icons\material-design-iconic-font\css\materialdesignicons.min.css:1:86: Can't resolve '..//fonts/materialdesignicons-webfont.eot' in 'D:\node-v15.11.0-win-x64\ssc1\src\assets\styles\icons\material-design-iconic-font\css'

If anybody know the solution please tell me how to solve this issue image of error here

3
  • DO NOT post images of code, data, error messages, etc Commented Jun 29, 2021 at 10:42
  • I am thinking PostCSS does not like comments like /* ... */. Try removing one and see if one of the errors goes away. Commented Jun 29, 2021 at 12:53
  • Jaya, you should not put .css in assets folder (create another folder). In Angular you should add the styles adding in angular.json file:angular.io/guide/… Commented Jun 30, 2021 at 6:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.