akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.14k stars 7.95k forks source link

npm start err #1608

Closed jsjjl closed 6 years ago

jsjjl commented 6 years ago

Date: 2018-03-27T01:39:49.113Z Hash: 5b93ea88235bddf45e42 Time: 84831ms chunk {charts.module} charts.module.chunk.js () 6.75 MB [rendered] chunk {common} common.chunk.js (common) 88 kB [rendered] chunk {components.module} components.module.chunk.js () 443 kB [rendered] chunk {editors.module} editors.module.chunk.js () 1.56 MB [rendered] chunk {forms.module} forms.module.chunk.js () 93.8 kB [rendered] chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered] chunk {main} main.bundle.js (main) 420 kB [initial] [rendered] chunk {maps.module} maps.module.chunk.js () 1.83 MB [rendered] chunk {pages.module} pages.module.chunk.js () 711 kB [rendered] chunk {polyfills} polyfills.bundle.js (polyfills) 1.65 MB [initial] [rendered] chunk {scripts} scripts.bundle.js (scripts) 1.37 MB [initial] [rendered] chunk {styles} styles.bundle.js (styles) 1.01 MB [initial] [rendered] chunk {tables.module} tables.module.chunk.js () 2.53 MB [rendered] chunk {ui-features.module} ui-features.module.chunk.js () 545 kB [rendered] chunk {vendor} vendor.bundle.js (vendor) 12.6 MB [initial] [rendered]

ERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!. /node_modules/sass-loader/lib/loader.js??ref--8-3!./src/app/@theme/styles/styles .scss Module build failed: undefined ^ Mixins may not be defined within control directives or other mixins. in E:\ngx-admin\node_modules\@nebular\theme\components\checkbox_checkbox. component.theme.scss (line 8, column 10)

Aw3same commented 6 years ago

Same here

ERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--8-3!./src/app/@theme/styles/styles.scss Module build failed: undefined ^ Mixins may not be defined within control directives or other mixins. in C:\Users\70255721j\Desktop\ngx-admin\node_modules\@nebular\theme\components\checkbox\_checkbox.component.theme.scss (line 8, column 10)

omardoma commented 6 years ago

Installing node-sass@4.8.1 fixes the issue

npm i node-sass@4.8.1

angular/cli 1.7.3 and angular 5.2.9

nnixaa commented 6 years ago

https://github.com/akveo/nebular/issues/316

mayur202529 commented 6 years ago

Updating to latest node and npm fixed my issue...

https://github.com/akveo/ngx-admin/issues/1607

lorentzyip commented 6 years ago

I update node to 9.10.1 and also npm i node-sass@4.8.1. Still got the errors.

lorentzyip commented 6 years ago

I think it's related to yarn. I started over with node 9.10.1 without installing node-sass@4.81, and used npm i instead of yarn. Now npm start runs normally without errors.

jorgellose commented 6 years ago

Installed npm i node-sass@4.8.1 like said omardoma and now it compiles.

gwsampso commented 6 years ago

Similar story here

deleted package-lock.json

sudo rm -rf node_modules
sudo npm cache clean --force
sudo npm install --unsafe-perm node-sass@4.8.1
sudo npm install

works

mindnervestech commented 6 years ago

Which node version is needed?

nnixaa commented 6 years ago

fixed in v2.1.1