Harish Mahajan
Harish Mahajan

Reputation: 3294

Mixins may not be defined within control directives or other mixins

I try to install npm packages. All packages install properly. But when I try to run application using npm start at that time below error occurs:

ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./src/styles.scss Module build failed:
undefined
^
Mixins may not be defined within control directives or other mixins.
in D:\DailyJS\CIDE_SCHOOL_DEV\node_modules\@angular\material_theming.scss (line 2440, column 10)
Error:
undefined
^
Mixins may not be defined within control directives or other mixins.
in D:\DailyJS\CIDE_SCHOOL_DEV\node_modules\@angular\material_theming.scss (line 2440, column 10)
at options.error (D:\DailyJS\CIDE_SCHOOL_DEV\node_modules\node-sass\lib\index.js:291:26) @ ./src/styles.scss 4:14-187
@ multi ./node_modules/font-awesome/scss/font-awesome.scss ./src/styles.scss
webpack: Failed to compile.

I don't know why this happens? Previously I cloned the repository from Github, and then installed npm packages by using npm install. Then it worked.

But today, it gives this error:

Mixins may not be defined within control directives or other mixins.

Upvotes: 3

Views: 8010

Answers (1)

Harish Mahajan
Harish Mahajan

Reputation: 3294

Now, i found the solution there was an issue with node-sass pacakge. so install the

npm i [email protected]

package then it works.

Upvotes: 14

Related Questions