You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR in ./src/css/index.css (./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/postcss-loader/src!./src/css/index.css)
Module build failed (from ./node_modules/css-loader/dist/cjs.js):
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? }
at validate (/Users/daichi/nekomimi-frontend/node_modules/css-loader/node_modules/schema-utils/dist/validate.js:88:11)
at Object.loader (/Users/daichi/nekomimi-frontend/node_modules/css-loader/dist/index.js:36:28)
書籍より勉強させて頂いた者です 🧑💻
css-loaderのoptionに関して書籍内の実装だと以下のようなエラーでbuildができません。
原因は
css-loader
バージョンアップによるもので下記のように記述方法を変えれば正常に動作することを確認しました。参考にしたurl貼っておきます。rails/webpacker#2197
僭越ながらとても勉強させて頂いた書籍だったのでこちらでご報告させて頂きました。
The text was updated successfully, but these errors were encountered: