Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Webpack build warning with inline SVG: there are multiple modules with names that only differ in casing


I am integrating Metronic to a SPA web app with Aurelia.js, VSCode and Webpack. When I build the application with NPM I get 3 warnings as the following:

There are multiple modules with names that only differ in casing.

This seems to have to do with inline svg declarations as the following

asset/inline|data:image/svg+xml;charset=utf-8,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3E%3Ccircle r=%273%27 fill=%27%23FFF%27/%3E%3C/svg%3E

Compare these module identifiers:

C:\Source\Repos\ClientApp\node_modules\css-loader\dist\cjs.js!C:\Source\Repos\ClientApp\node_modules\postcss-loader\dist\cjs.js??ruleSet[1].rules[0].use[2]!C:\Source\Repos\ClientApp\src\assets\css\style.bundle.css
@ ./src/assets/css/style.bundle.css.webpack[javascript/auto]!=!./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[0].use[2]!./src/assets/css/style.bundle.css 11:36-220
@ ./src/assets/css/style.bundle.css
@ ./src/main.ts 5:0-39
@ ./node_modules/aurelia-webpack-plugin/runtime/empty-entry.js

Any idea how I can resolve this?


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (8)


I’ve faced the same issue with Webpack when integrating Metronic into my Aurelia.js app — those casing warnings can be frustrating! It usually happens when import paths don’t match the exact file name, so double-check for any subtle differences. Adding caseSensitivePathsPlugin to your Webpack config might help too. By the way, if you need a quick break, you can check out the free download the apk of lucky 101 game — it’s a fun way to relax and even earn some money!



It seems like the Webpack warning is due to case sensitivity issues in module names, especially with inline SVGs. Ensuring consistent casing in import paths might help resolve it. By the way, if you enjoy optimizing and building web apps, you might also like to unwind with my android game—it's a lot of fun!



Want to enjoy world-class casino games on your phone in Cambodia? 1xBet offers a smooth and reliable mobile platform where you can place bets, spin the reels, or challenge real dealers in live games. With high-quality graphics, fast-loading games, and secure banking options 1xbet app download https://1xbetcambodia.com/en/mobile makes mobile gaming effortless and enjoyable. Don't miss out on exciting promotions and bonuses—check out the mobile casino here and start playing today!



Yes, it works
Thanx!



Hi Marco,

Could you please try to change the color from #FFFFFF to #ffffff in file sass/components/_variables.custom.scss? We think the issue is coming from this.

Thanks



Your suggestion resolved the problem. Thanks a lot, Faizal, I could never figure this out by myself.



Hi Marco,

The colour variable is used for SVG in components/mixins/_svg-bg-icon.scss to change SVG fill. We will fix the colour value.

Thanks


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(