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

Error query.substr is not a function #37

Open Tony221268 opened 4 years ago

Tony221268 commented 4 years ago

Running Gatsby Cli 2.12.37 This plugin 3.0.0

If I add this to gatsby.config.js { resolve: 'gatsby-plugin-react-svg', options: { rule: { include: /svg/ OR /assets/ or whatever } } },

I get this error during a build

ERROR #98123 WEBPACK

Generating development JavaScript bundle failed

query.substr is not a function

File: src\assets\svg\example.svg

I get this only when I add this plugin to config otherwise build is successful.