Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error query.substr is not a function #37

Open
Tony221268 opened this issue May 28, 2020 · 0 comments
Open

Error query.substr is not a function #37

Tony221268 opened this issue May 28, 2020 · 0 comments

Comments

@Tony221268
Copy link

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 Tony221268 changed the title Error Error query.substr is not a function Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant