jacobmischka / gatsby-plugin-react-svg

Adds svg-react-loader to gatsby webpack config
https://www.npmjs.com/package/gatsby-plugin-react-svg
MIT License
70 stars 21 forks source link

Module parse failed: Unexpected character '​' #36

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, with the following warning;

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

Any idea what is going on?

olivier-lacroix commented 4 years ago

Example problematic SVG attached

EnergyEfficiency​.inline.svg.zip

olivier-lacroix commented 4 years ago

Reported here as well : https://github.com/jhamlet/svg-react-loader/issues/124

olivier-lacroix commented 4 years ago

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