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

Error query.substr is not a function

Open Tony221268 opened this issue 5 years ago • 0 comments

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.

Tony221268 avatar May 28 '20 15:05 Tony221268