Git Product home page Git Product logo

Comments (4)

CMeeg avatar CMeeg commented on July 4, 2024

Thanks for flagging these Sean. I will take a look.

from gridsome-source-kentico-kontent.

seangwright avatar seangwright commented on July 4, 2024

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.

I wanted to dig into this more and learn how the plugin was working.

I started with export DEBUG=* to turn on the debug package you're using.

But then I wanted to look at the data structures being processed and started using this launch.json for VS Code to debug the entire data load process.

{
    "version": "0.2.0",
    "configurations": [{
        "type": "node",
        "request": "launch",
        "name": "Launch Program",
        "program": "${workspaceRoot}\\node_modules\\gridsome\\bin\\gridsome.js",
        "runtimeArgs": [
            "--inspect-brk=9229",
        ],
        "args": [
            "develop"
        ],
        "port": 9229
    }]
}

The export DEBUG=* might be helpful to put in the README for devs looking to diagnose issues.

I think the launch.json might be helpful in the Gridsome repo to help plugin developers, but I thought I'd mention it here in case anyone else is interested.

from gridsome-source-kentico-kontent.

CMeeg avatar CMeeg commented on July 4, 2024

Hi @seangwright

Thanks for all the feedback so far :) I broke this issue down so it was easier for me to manage and hopefully the bugs fixed so far will mean you can get going on this again!

I have pushed a new version of the plugin (0.1.1) up to npm that should resolve the original two issues that you had with the Sample Project - see issues #3 and #4.

I have left a question for you on #5 if you have some time to get back to me on that.

I will need to investigate #6 another night - I haven't caught up with any new Gridsome or Kentico Cloud SDK releases yet so not sure where the problem lies, but as long as you don't mind rolling back to Gridsome 0.6.9 you should be OK - I set up a fresh Gridsome site on 0.6.9 (and Kentico Cloud Delivery 5.7.2) this evening to debug and fix the above issues and the Sample Project is pulling in without errors.

Thanks also for the launch.json config - probably worth raising with Gridsome as you say as it would be useful to have that in their repo or their docs.

Cheers

from gridsome-source-kentico-kontent.

seangwright avatar seangwright commented on July 4, 2024

Hey! thanks so much for responding and fixing these issues 🙏🙏!

I'm cool to roll back to 0.6.9 - I only upgraded to a newer Gridsome to see if any issues were resolved there.

I want to dig into the Gridsome API docs a lot more so I can better understand how all of this plumbing works and hopefully help diagnose any issues that appear (which I'm sure there will be more of with the Gridsome and Kentico packages updating so quickly).

from gridsome-source-kentico-kontent.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.