gridsome / gridsome/gridsome-starter-wordpress

vue-svg-loader giving Error: Cannot query field "allWordPressP ost" on type "Query".

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
92
Forks
30
PR merge metrics
No merged PRs in 30d

Description

When added the code below to the gridsome.config.js. It gives the Error: Cannot query field "allWordPressPost" on type "Query". When remove the code below it error disappears but the svg don't load. I just added svg inline.

module.exports = {
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.use('vue-svg-loader')
.loader('vue-svg-loader')
}
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.