Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    I use bagisto 1.3.1. I install nodejs and npm but run npm run dev then error.

    Bug Report
    2
    2
    538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      pxnguyen1 last edited by pxnguyen1

      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
      1 Reply Last reply Reply Quote 0
      • A
        Amitk-Webkul last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post