question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Refs for source-filesystem not building on gridsome 0.7.2

See original GitHub issue

Description

When using the Gridsome Starter Blog and upgrading to gridsome 0.7.2 the grdisome develop & build commands fail.

I have a filed an issue with the blog starter project as well. But I’m thinking it might be the source-filesystem.

Steps to reproduce

  1. gridsome create my-gridsome-site https://github.com/gridsome/gridsome-starter-blog.git
  2. cd my-gridsome-site to open folder
  3. yarn upgrade gridsome --latest
  4. gridsome develop

Expected result

Should generate the website and start up a server to test locally

Actual result

Fails with the following log printed out.

Initializing plugins...
Tag > Failed to add node: Duplicate key for property id: Flutter
Tag > Failed to add node: Duplicate key for property id: Dependency Injection
Tag > Failed to add node: Duplicate key for property id: Provider
Load sources - 0.19s
Error: Cannot get field 'tags' from type 'Post'. Field does not exist.
    at ObjectTypeComposer.getField (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\graphql-compose\lib\ObjectTypeComposer.js:167:13)
    at ObjectTypeComposer.isFieldPlural (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\graphql-compose\lib\ObjectTypeComposer.js:365:23)
    at mapValues (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\gridsome\lib\graphql\nodes\index.js:260:25)
    at D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\lodash\lodash.js:13401:38
    at D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\lodash\lodash.js:4905:15
    at baseForOwn (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\lodash\lodash.js:2990:24)
    at mapValues (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\lodash\lodash.js:13400:7)
    at createReferenceFields (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\gridsome\lib\graphql\nodes\index.js:257:16)
    at createNodesSchema (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\gridsome\lib\graphql\nodes\index.js:30:5)
    at createSchema (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\gridsome\lib\graphql\createSchema.js:59:3)
    at Schema.buildSchema (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\gridsome\lib\app\Schema.js:28:28)
    at Plugins.createSchema (D:\Code\Clients\MdkStudio\filledstacks\filledstack-webapp\website\node_modules\gridsome\lib\app\Plugins.js:93:22)

Environment


Libs:
- gridsome version: 0.7.2
- @gridsome/cli version: 0.0.9

Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 10.5.2
- Platform:  Windows

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
FilledStackscommented, Sep 16, 2019

Upgrading all the plugins worked. Thanks for the help.

0reactions
LorenAmelangcommented, Apr 8, 2020

I had a similar issue:

Error: Cannot query field “title” on type “Tag”.

For other newbies, using (for example):

npm install @gridsome/remark-prismjs

only updates partway, and didn’t solve my problem.

npm install @gridsome/remark-prismjs@latest

got a much newer version, which worked!

package.json has a “dependencies” list of what might need updating. The new versions will show in the list after you build or develop.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gridsome/source-filesystem
Define which files to consider as index files. These files will not have their filename appear in its route path and will become...
Read more >
TypeError when using Gridsome while building a Vue.js ...
The error you got is from vue-server-renderer , which is from Vue's server-side API. You'll need to implement the instructions above. ~ import....
Read more >
Same Con to Hoyci - A blog mostly about Web development.
They're fine for that “12 minute blog” demo but not too much past that. My Gridsome blog deteriorated in few months to a...
Read more >
gridsome/source-filesystem
Filesystem source for Gridsome. Latest version: 0.6.2, last published: 3 years ago. Start using @gridsome/source-filesystem in your project ...
Read more >
flexsearch | Next-Generation full text search library for Browser
Implement flexsearch with how-to, Q&A, fixes, code snippets. kandi ratings - Medium support, No Bugs, No Vulnerabilities. Permissive License, Build ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found