CMeeg / gridsome-source-kentico-kontent

Kentico Kontent data source plugin for Gridsome.
MIT License
6 stars 4 forks source link

Plugin error when using Gridsome 0.7.2 #6

Closed CMeeg closed 5 years ago

CMeeg commented 5 years ago

This issue was raised on #2:

I updated Gridsome (I was previously using 0.6.9) to the current latest (0.7.2) and ran into an issue with Taxonomies... specifically ManufacturerTaxonomy (this is running on the same "Sample Project").

Here's my stacktrace

Load sources - 2.08s
Error: Cannot get field 'terms' from type 'TaxonomyManufacturer'. Field does not exist.
at ObjectTypeComposer.getField (D:\path\to\app\node_modules\graphql-compose\lib\ObjectTypeComposer.js:167:13)
at ObjectTypeComposer.isFieldPlural (D:\path\to\app\node_modules\graphql-compose\lib\ObjectTypeComposer.js:365:23)
at mapValues (D:\path\to\app\node_modules\gridsome\lib\graphql\nodes\index.js:260:25)
at D:\path\to\app\node_modules\lodash\lodash.js:13401:38
at D:\path\to\app\node_modules\lodash\lodash.js:4905:15
at baseForOwn (D:\path\to\app\node_modules\lodash\lodash.js:2990:24)
at mapValues (D:\path\to\app\node_modules\lodash\lodash.js:13400:7)
at createReferenceFields (D:\path\to\app\node_modules\gridsome\lib\graphql\nodes\index.js:257:16)
at createNodesSchema (D:\path\to\app\node_modules\gridsome\lib\graphql\nodes\index.js:30:5)
at createSchema (D:\path\to\app\node_modules\gridsome\lib\graphql\createSchema.js:59:3)
at Schema.buildSchema (D:\path\to\app\node_modules\gridsome\lib\app\Schema.js:28:28)
at Plugins.createSchema (D:\path\to\app\node_modules\gridsome\lib\app\Plugins.js:93:22)
at process._tickCallback (internal/process/next_tick.js:68:7)

I have a feeling this is related to changes in the Kentico SDK / Cloud API.