Breaking News: Grepper is joining Read the official announcement!
Check it out

HookWebpackError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):

Fancy Ferret answered on May 21, 2021 Popularity 7/10 Helpfulness 1/10


More Related Answers

  • ModuleBuildError: Module build failed (from ./node_modules/sass-loader/lib/loader.js): Error: ENOENT: no such file or directory, scandir
  • ERROR in ./server/server.js Module build failed (from ./node_modules/babel-loader/lib/index.js):
  • modulebuilderror: module build failed (from ./node_modules/sass-loader/lib/loader.js):
  • ./src/styles.scss - Error: Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): SyntaxError: Unexpected token, expected "," (5:5) ./src/app/app.component.scss?ngResource - Error: Module build failed (from ./node_modules/postcss-loader/dis
  • Module Error (from ./node_modules/eslint-loader/dist/cjs.js):
  • create react app node: internal/modules/cjs/loader:936throw err;^Error: Cannot find module 'react-scripts/scripts/init.js'
  • css modules cannot be imported from within node_modules.
  • /node_modules/css-loader/dist/runtime/api.js - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
  • heroku vujs internal/modules/cjs/loader.js:883 throw err; ^ Error: Cannot find module 'express' Require stack: - /app/server.js
  • HookWebpackError: Module build failed (from ./node_modules/css-loader/dist/cjs.js): Error: Can't resolve '~bootstrap/dist/css/bootstrap.css.' in 'F:\AN\UNMS\src'
  • error /tmp/build_b8224c75/node_modules/node-sass: Command failed
  • ERROR in ./node_modules/plyr/dist/plyr.css (./node_modules/css-loader/dist/cjs.js??ref--3-oneOf-1-1!./node_modules/postcss-loader/src??ref--3-oneOf-1-2!./node_modules/plyr/dist/plyr.css)
  • module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
  • Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: Can't find stylesheet to import. ╷ 4 │ @import '~@fortawesome/fontawesome-free/scss/fontawesome.scss';
  • Module build failed (from ./node_modules/sass-loader/dist/cjs.js)
  • ERROR in ./resources/sass/app.scss Module build failed (from ./node_modules/css-loader/index.js):

  • HookWebpackError: Module build failed (from ./node_modules/css-loader/dist/cjs.js):


    The root cause for this error is when the css file is compiled by the css loader more than once. Check if your webpack config has duplicate css loaders entry.

    perhaps you imported stylesheet in your index.html and at the same time inside you src/index.js. 

    Popularity 7/10 Helpfulness 1/10 Language css
    Link to this answer
    Share Copy Link
    Contributed on Mar 11 2023
    Fancy Ferret
    0 Answers  Avg Quality 2/10

    Closely Related Answers

    Popularity 10/10 Helpfulness 8/10 Language javascript
    Source: Grepper
    Tags: javascript j
    Link to this answer
    Share Copy Link
    Contributed on May 21 2021
    0 Answers  Avg Quality 2/10

    Popularity 5/10 Helpfulness 4/10 Language shell
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Sep 11 2023
    0 Answers  Avg Quality 2/10


    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.