yarn mix command error this,
ERROR in ./resources/mix/plugins.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
â·
9 â @import "components/mixins";
â ^^^^^^^^^^^^^^^^^^^
âµ
resources/_keenthemes/src/sass/_init.scss 9:9 @import
resources/_keenthemes/src/sass/plugins.scss 10:9 @import
resources/mix/plugins.scss 62:9 root stylesheet
at processResult (/home/taner/web/laksis.com/public_html/node_modules/webpack/lib/NormalModule.js:764:19)
at /home/taner/web/laksis.com/public_html/node_modules/webpack/lib/NormalModule.js:866:5
at /home/taner/web/laksis.com/public_html/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /home/taner/web/laksis.com/public_html/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/home/taner/web/laksis.com/public_html/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/home/taner/web/laksis.com/public_html/node_modules/sass-loader/dist/index.js:69:5)
ERROR in ./resources/_keenthemes/src/sass/style.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
â·
9 â @import "components/mixins";
â ^^^^^^^^^^^^^^^^^^^
âµ
resources/_keenthemes/src/sass/_init.scss 9:9 @import
resources/_keenthemes/src/sass/style.scss 6:9 root stylesheet
at processResult (/home/taner/web/laksis.com/public_html/node_modules/webpack/lib/NormalModule.js:764:19)
at /home/taner/web/laksis.com/public_html/node_modules/webpack/lib/NormalModule.js:866:5
at /home/taner/web/laksis.com/public_html/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /home/taner/web/laksis.com/public_html/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/home/taner/web/laksis.com/public_html/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/home/taner/web/laksis.com/public_html/node_modules/sass-loader/dist/index.js:69:5)
2 ERRORS in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 4 errors
Hi Taner,
Sometimes, caching issues can cause problems with SASS compilation. Try clearing the Laravel Mix cache by running yarn clear
, and then recompile your assets using npm run dev
.
Delete the node_modules
folder from your project directory. After removing the node_modules folder, you need to reinstall the dependencies.
Thanks