Closed marufmax closed 5 years ago
I was able to reproduce the error with the @fortawesome/fontawesome-free
package by importing it in a css file. Specifically importing @fortawesome/fontawesome-free/css/all.css
caused the same error.
What happened was that laravel-mix-svg-vue
was overriding the .svg
rule check for webpack, so no loader felt responsible...
A fix has been published, after upgrading to the latest version (0.2.3) you should be good to go.
Upgrading with yarn:
yarn upgrade laravel-mix-svg-vue
Or with npm:
npm update laravel-mix-svg-vue
Readding packages is also an option, this will install the latest available version.
Please reopen this issue if your problem isn't fixed.
I am getting this:
My
webpack.mix.js
is:What I understand is, Webpack can't load Svg file. Do I need any loader for resolving this error?