I use bagisto 1.3.1. I install nodejs and npm but run npm run dev then error.
-
I use bagisto 1.3.1. I install nodejs and npm but run npm run dev then error in below.
please help me check version nodejs, npm to can run npm run dev success. thanks.ERROR in ./src/Resources/assets/sass/app.scss
Module build failed (from ./node_modules/laravel-mix/node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
ValidationError: Invalid options object. Sass Loader has been initialized using an options object that does not match the API schema.- options has an unknown property 'includePaths'. These properties are valid:
object { implementation?, api?, sassOptions?, additionalData?, sourceMap?, webpackImporter?, warnRuleAsWarning? }
at validate (packages\Webkul\Velocity\node_modules\webpack\node_modules\schema-utils\dist\validate.js:105:11)
at Object.getOptions (packages\Webkul\Velocity\node_modules\webpack\lib\NormalModule.js:585:19)
at Object.loader (packages\Webkul\Velocity\node_modules\sass-loader\dist\index.js:27:24)
at processResult (packages\Webkul\Velocity\node_modules\webpack\lib\NormalModule.js:758:19)
at packages\Webkul\Velocity\node_modules\webpack\lib\NormalModule.js:860:5
at packages\Webkul\Velocity\node_modules\loader-runner\lib\LoaderRunner.js:400:11
at packages\Webkul\Velocity\node_modules\loader-runner\lib\LoaderRunner.js:252:18
- options has an unknown property 'includePaths'. These properties are valid:
-
Hi there,
Remove the node_modules folder from your project directory.Clear the NPM cache by running the following command:
npm cache clear --force
Install the NPM dependencies again by running the following command:
npm install
Finally, try running the npm run dev command again.