gatsby-plugin-react-svg icon indicating copy to clipboard operation
gatsby-plugin-react-svg copied to clipboard

Module parse failed: Unexpected character '​'

Open olivier-lacroix opened this issue 4 years ago • 3 comments

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 avatar May 09 '20 10:05 olivier-lacroix

Example problematic SVG attached

EnergyEfficiency​.inline.svg.zip

olivier-lacroix avatar May 09 '20 10:05 olivier-lacroix

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

olivier-lacroix avatar May 09 '20 10:05 olivier-lacroix

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

olivier-lacroix avatar May 10 '20 07:05 olivier-lacroix