nebular: Nested mixins error

Issue type

I’m submitting a … (check one with “x”)

  • [ x ] bug report
  • feature request

Issue description

Current behavior: Error about nested mixins when building/running (yarn run start)

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/richard/workspace/ngx-admin/node_modules/@nebular/theme/components/checkbox/_checkbox.component.theme.scss (line 8, column 10)

Expected behavior: It should build and run.

Steps to reproduce: Clone from git and yarn run start

Other information:

npm, node, OS, Browser Yarn version 1.3.2 (also tried npm 5.6.0) Node 9.8.0 Arch Linux x86

Angular, Nebular

    "@angular/animations": "~5.2.6",
    "@angular/common": "~5.2.6",
    "@angular/compiler": "~5.2.6",
    "@angular/core": "~5.2.6",
    "@angular/forms": "~5.2.6",
    "@angular/http": "~5.2.6",
    "@angular/platform-browser": "~5.2.6",
    "@angular/platform-browser-dynamic": "~5.2.6",
    "@angular/router": "~5.2.6",
...
    "@nebular/auth": "2.0.0-rc.6",
    "@nebular/theme": "2.0.0-rc.6",
    "@nebular/security": "2.0.0-rc.6",

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 7
  • Comments: 27 (2 by maintainers)

Commits related to this issue

Most upvoted comments

@jesus-ibanez direct install node-sass@4.8.1 is work!! thanks~ npm i node-sass@4.8.1

angular/cli 1.7.3 and angular 5.2.9

I had the same issue and after replace node-sass@4.8.3 by node-sass@4.8.1 it works even with nodejs 8.10.0, npm 5.8.0, angular/cli 1.7.3 and angular 5.2.9, i hope this helps

@lakstap install node-sass@4.8.1 than everything is ok in my case. Doesn’t need to nuke node_modules or something.

My package.json doesn’t contain node-sass before this, but i seen node-sass@4.7.?(forgotten) in node_modules folder, so i decide to install it explicitly, then the problem magically solve.

Special thanks to @jesus-ibanez !!