A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/arackaf/customize-cra/issues/242 below:

[Bug] `addLessLoader` throw error with newest `css-loader` · Issue #242 · arackaf/customize-cra · GitHub

Newest css-loader validate the options of css-loader.
And support new usage with css modules.

react-scripts has depended on css-loader@3.4.2

Use the addLessLoader newest react-scripts will throw error:

ValidationError: Invalid options object. CSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'localIdentName'. These properties are valid:
   object { url?, import?, modules?, sourceMap?, importLoaders?, localsConvention?, onlyLocals?, esModule? }

So, we need rewrite these line to support newest css-loader options.

const localIdentName = loaderOptions.localIdentName || "[path][name]__[local]--[hash:base64:5]"; modules: true, localIdentName: localIdentName

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4