Open-source by Keenthemes!Support our KtUI and ReUI open-source projects and help with growth.
Star on Github

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=%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 (10)


I've encountered a similar warning in Webpack when working with SVG - the system is really case-sensitive, and if you have Icon.svg and icon.svg, it can get confused. It's especially annoying when everything works locally and crashes on the prod. By the way, such attention to detail reminds me of the format of sixty6.com , where every little thing in the visual design matters. And although this is a Sweepstakes, not something about real bets, the design and UX are implemented so competently that the feeling of immersion is like in a real game.



When working with Webpack, you might encounter the warning: "There are multiple modules with names that only differ in casing." This usually happens when file imports have inconsistent capitalization, especially with inline SVGs. To resolve this, ensure consistent case usage across all imports. Additionally, enabling case sensitivity in Webpack settings can help. For more tips on optimizing your build process, check out resources on LuckyBonuses.com for insights on performance improvements.



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 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  :(