ngx-admin icon indicating copy to clipboard operation
ngx-admin copied to clipboard

npm test ERROR in multi, related to font awesome scss

Open dizco opened this issue 6 years ago • 2 comments

Issue type

I'm submitting a ... (check one with "x")

  • [x] bug report
  • [ ] feature request
  • [ ] question about the decisions made in the repository

Issue description

Current behavior:

Executing npm run test produces an error that stops tests from being run.

ERROR in multi ./node_modules/bootstrap/dist/css/bootstrap.css ./node_modules/typeface-exo/index.css ./node_modules/roboto-fontface/css/roboto/roboto-fontface.css ./node_modules/ionicons/scss/ionicons.scss ./node_modules/font-awesome/scss/font-awesome.scss ./node_modules/socicon/css/socicon.css ./node_modules/nebular-icons/scss/nebular-icons.scss ./node_modules/pace-js/templates/pace-theme-flash.tmpl.css ./src/app/@theme/styles/styles.scss
Module not found: Error: Can't resolve 'C:\Users\Gabriel\Documents\Github\dizco\ngx-admin\node_modules\font-awesome\scss\font-awesome.scss' in 'C:\Users\Gabriel\Documents\Github\dizco\ngx-admin'
 @ multi ./node_modules/bootstrap/dist/css/bootstrap.css ./node_modules/typeface-exo/index.css ./node_modules/roboto-fontface/css/roboto/roboto-fontface.css ./node_modules/ionicons/scss/ionicons.scss ./node_modules/font-awesome/scss/font-awesome.scss ./node_modules/socicon/css/socicon.css ./node_modules/nebular-icons/scss/nebular-icons.scss ./node_modules/pace-js/templates/pace-theme-flash.tmpl.css ./src/app/@theme/styles/styles.scss styles[4]

Expected behavior:

Tests should be executed normally, without errors.

Steps to reproduce:

  1. Clone ngx-admin
  2. npm install
  3. npm test

Related code:

This has likely been introduced by #1798

Other information:

npm, node, OS, Browser npm 6.4.1

Angular, Nebular ngx-admin 3.0.0

dizco avatar Dec 31 '18 16:12 dizco

Thanks @dizco - This just saved me hours of debugging!

cmutagorama avatar Apr 30 '20 00:04 cmutagorama

... I got the same error because I renamed the project folder.

Solution: 1) Check your angular.json file 2) => look for "styles": [ ... and check all the paths inside this array

safik222 avatar Apr 22 '21 08:04 safik222