question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build error (Mixins may not be defined within control directives or other mixins)

See original GitHub issue

Issue type

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

  • bug report
  • feature request

Issue description

Current behavior: During the build process the following error is happening: ERROR in ./src/app/@theme/styles/styles.scss Module build failed: undefined ^ Mixins may not be defined within control directives or other mixins. in C:\projects\recibos-admin\app\node_modules\@nebular\theme\components\checkbox\_checkbox.component.theme.scss (line 8, column 10) ERROR in ./src/app/@theme/styles/styles.scss Module build failed: ModuleBuildError: Module build failed: undefined ^ Mixins may not be defined within control directives or other mixins. in C:\projects\recibos-admin\app\node_modules\@nebular\theme\components\checkbox\_checkbox.component.theme.scss (line 8, column 10) at runLoaders (C:\projects\recibos-admin\app\node_modules\webpack\lib\NormalModule.js:195:19) at C:\projects\recibos-admin\app\node_modules\loader-runner\lib\LoaderRunner.js:364:11 at C:\projects\recibos-admin\app\node_modules\loader-runner\lib\LoaderRunner.js:230:18 at context.callback (C:\projects\recibos-admin\app\node_modules\loader-runner\lib\LoaderRunner.js:111:13) at Object.asyncSassJobQueue.push [as callback] (C:\projects\recibos-admin\app\node_modules\sass-loader\lib\loader.js:76:13) at Object.done [as callback] (C:\projects\recibos-admin\app\node_modules\neo-async\async.js:7974:18) at options.error (C:\projects\recibos-admin\app\node_modules\node-sass\lib\index.js:294:32)

Expected behavior: A complete build without errors

Other information:

Angular, Nebular

Angular: 5.2.10
Nebular: 2.0.0-rc.6

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
nnixaacommented, Apr 21, 2018

Have just released 2.0.0-rc.7, should be fixed there.

0reactions
ehobergcommented, Apr 20, 2018

No idea, just a friendly bypassing thats in the same boat =)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mixins may not be defined within control directives or other ...
Issue description. Current behavior: Crashes when compiling, with the message: ERROR in ./node_modules/raw-loader!./node_modules ...
Read more >
Mixins may not be defined within control directives or other ...
Now, i found the solution there was an issue with node-sass pacakge. so install the. npm i node-sass@4.8.1. package then it works.
Read more >
SCSS: Functions may not be defined within control directives
Hello,. I got this message after compiling the file mdb.scss: Error: Functions may not be defined within control directives or other mixins.
Read more >
Node.js – Functions may not be defined within control directives or ...
Node.js – Functions may not be defined within control directives or other mixins ... In my nodeJS project suddenly it give error.I do...
Read more >
mixin and @include - Sass
Mixins allow you to define styles that can be re-used throughout your stylesheet. They make it easy to avoid using non-semantic classes like...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found