Code Monkey home page Code Monkey logo

Comments (19)

alexander-akait avatar alexander-akait commented on June 12, 2024 7

You need webpack v5 to use the latest version of style-loader, please read changelog

from style-loader.

dep avatar dep commented on June 12, 2024 7

I am also getting the issue above. how to solve issue?

take your laptop and throw it into the ocean.

seriously though, i have the same problem.

from style-loader.

milu2003 avatar milu2003 commented on June 12, 2024 6

npm i [email protected] -D

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024 2

I'm getting this error when using Webpack 5.59.1 and the latest version of style-loader. Do I still need to downgrade to style-loader@2? (Also happens with Webpack 5 and style-loader 2.)

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024 2

Have you read the comments above which show the solution?

from style-loader.

alexander-akait avatar alexander-akait commented on June 12, 2024 1

Problem in webpack-stream, as you can see it install webpack v4...

from style-loader.

alexander-akait avatar alexander-akait commented on June 12, 2024 1

Update webpack-stream to v7

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024 1

Bingo. Perfect. Thanks!

from style-loader.

alexander-akait avatar alexander-akait commented on June 12, 2024

Run npm ls style-loader

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024

Gives the return [email protected].

from style-loader.

alexander-akait avatar alexander-akait commented on June 12, 2024

Do you have thread-loader?

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024

Nope.

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024

Downgrading Webpack to 4 and style-loader to 2 resolves it. (I write “resolves it” but it's obviously not a solution.)

from style-loader.

alexander-akait avatar alexander-akait commented on June 12, 2024

Run npm ls webpack when you try to upgrade to webpack v5

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024
├─┬ @wordpress/[email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected] deduped

from style-loader.

markhowellsmead avatar markhowellsmead commented on June 12, 2024

...and with style-loader@3:

├─┬ @wordpress/[email protected]
│ └─┬ [email protected]
│   └─┬ [email protected]
│     └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ └── [email protected] deduped
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected] deduped
│ └── [email protected] deduped
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └── [email protected] deduped

from style-loader.

GustavoPintod avatar GustavoPintod commented on June 12, 2024

You need webpack v5 to use the latest version of style-loader, please read changelog

Thanks man, it helped me a lot! <3

from style-loader.

manoharmaddi avatar manoharmaddi commented on June 12, 2024

./src/index.css
TypeError: this.getOptions is not a function

i m getting this error while executing please help me out

from style-loader.

yash4882 avatar yash4882 commented on June 12, 2024

ERROR in ./app/javascript/stylesheets/application.scss (./node_modules/css-loader/dist/cjs.js??ref--6-1!./node_modules/postcss-loader/dist/cjs.js??ref--6-2!./node_modules/sass-loader/dist/cjs.js??ref--6-3!./app/javascript/stylesheets/application.scss)
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
TypeError: this.getOptions is not a function
at Object.loader (/home/yash/Desktop/rails_project/granite/node_modules/postcss-loader/dist/index.js:28:24)

from style-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.