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

not able to run application using ng serve #1623

Closed afsalcodehack closed 6 years ago

afsalcodehack commented 6 years ago

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 D:\Excercise\ngx-admin-master\node_modules\@nebular\theme\components\checkbox_checkbox.component.theme.scss (line 8, column 10)

juusechec commented 6 years ago

+1

....
 69% building modules 1531/1532 modules 1 active ...app/pages/charts/d3/d3.compoDate: 2018-04-05T16:38:02.354Z                  
Hash: d189fbc8c93ebbce5b1f
Time: 33071ms
chunk {charts.module} charts.module.chunk.js () 6.74 MB  [rendered]
chunk {common} common.chunk.js (common) 88 kB  [rendered]
chunk {components.module} components.module.chunk.js () 441 kB  [rendered]
chunk {editors.module} editors.module.chunk.js () 1.56 MB  [rendered]
chunk {forms.module} forms.module.chunk.js () 90.3 kB  [rendered]
chunk {inline} inline.bundle.js (inline) 5.79 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 412 kB [initial] [rendered]
chunk {maps.module} maps.module.chunk.js () 1.83 MB  [rendered]
chunk {pages.module} pages.module.chunk.js () 700 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 () 530 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: 
  @mixin hover-border($color) {
        ^
      Mixins may not be defined within control directives or other mixins.
      in /home/jorge/workspace/ngx-admin/node_modules/@nebular/theme/components/checkbox/_checkbox.component.theme.scss (line 8, column 10)

webpack: Failed to compile.
nnixaa commented 6 years ago

Hi Guys, here's a workaround #1608 (comment). The issue only appears with the latest angular-cli which updates node-sass, which has a breaking change. Closing as duplicate.