jhamlet / svg-react-loader

Webpack SVG to React Component Loader
MIT License
559 stars 82 forks source link

Module parse failed: Unexpected character '​' #124

Open olivier-lacroix opened 4 years ago

olivier-lacroix commented 4 years ago

Hi there,

I am facing some parsing issues with some quite simple SVGs (via gatsby-plugin-react-svg), with the following warning;

warn Module parse failed: Unexpected character '​' (3:25)

Example problematic SVG attached

EnergyEfficiency​.inline.svg.zip

Any idea what the problem is?

olivier-lacroix commented 4 years ago

webpack: 4.42.1 svg-react-loader: 0.4.6

olivier-lacroix commented 4 years ago

It appears changing the filename solves the problem. Any idea why some file names yield a failure?