Giter VIP home page Giter VIP logo

Comments (11)

Jonqth avatar Jonqth commented on June 4, 2024

Hi @thetre97 i got the same thing, and editing a record or adding a new one.
It works again when i update the plugin config, by change a bool or something.

Keeps, failing would be great to have a fix for this or at least an answer :)

from gatsby-source-datocms.

thetre97 avatar thetre97 commented on June 4, 2024

@Jonqth Unfortunately, that didn't work for me :/ Thanks for the suggestion though! 👍

from gatsby-source-datocms.

thetre97 avatar thetre97 commented on June 4, 2024

And again on another project, but with a couple more errors now -

error Plugin gatsby-source-datocms returned an error


  TypeError: Cannot read property 'type' of undefined

  - makeType.js:9 module.exports
    [hindheadstudios]/[gatsby-source-datocms]/makeType.js:9:14

  - makeId.js:8 makeId
    [hindheadstudios]/[gatsby-source-datocms]/makeId.js:8:12

  - createItemNodes.js:29 itemNodeId
    [hindheadstudios]/[gatsby-source-datocms]/createItemNodes.js:29:10

  - createItemNodes.js:67
    [hindheadstudios]/[gatsby-source-datocms]/createItemNodes.js:67:45

  - Array.forEach

  - createItemNodes.js:49
    [hindheadstudios]/[gatsby-source-datocms]/createItemNodes.js:49:28

  - Array.forEach

  - createItemNodes.js:43
    [hindheadstudios]/[gatsby-source-datocms]/createItemNodes.js:43:11

  - Array.forEach

  - createItemNodes.js:40 createItemNodes
    [hindheadstudios]/[gatsby-source-datocms]/createItemNodes.js:40:26

  - gatsby-node.js:77 _callee$
    [hindheadstudios]/[gatsby-source-datocms]/gatsby-node.js:77:25

  - gatsby-node.js:3 step
    [hindheadstudios]/[gatsby-source-datocms]/gatsby-node.js:3:191

  - gatsby-node.js:3
    [hindheadstudios]/[gatsby-source-datocms]/gatsby-node.js:3:361


error Cannot read property 'filter' of undefined


  TypeError: Cannot read property 'filter' of undefined

  - api-runner-node.js:274 Promise.mapSeries.catch.then.results
    [hindheadstudios]/[gatsby]/dist/utils/api-runner-node.js:274:42

  - util.js:16 tryCatcher
    [hindheadstudios]/[bluebird]/js/release/util.js:16:23

  - promise.js:512 Promise._settlePromiseFromHandler
    [hindheadstudios]/[bluebird]/js/release/promise.js:512:31

  - promise.js:569 Promise._settlePromise
    [hindheadstudios]/[bluebird]/js/release/promise.js:569:18

  - promise.js:614 Promise._settlePromise0
    [hindheadstudios]/[bluebird]/js/release/promise.js:614:10

  - promise.js:693 Promise._settlePromises
    [hindheadstudios]/[bluebird]/js/release/promise.js:693:18

  - async.js:133 Async._drainQueue
    [hindheadstudios]/[bluebird]/js/release/async.js:133:16

  - async.js:143 Async._drainQueues
    [hindheadstudios]/[bluebird]/js/release/async.js:143:10

  - async.js:17 Immediate.Async.drainQueues [as _onImmediate]
    [hindheadstudios]/[bluebird]/js/release/async.js:17:14


error UNHANDLED REJECTION


  TypeError: Cannot read property 'filter' of undefined

  - api-runner-node.js:274 Promise.mapSeries.catch.then.results
    [hindheadstudios]/[gatsby]/dist/utils/api-runner-node.js:274:42

  - util.js:16 tryCatcher
    [hindheadstudios]/[bluebird]/js/release/util.js:16:23

  - promise.js:512 Promise._settlePromiseFromHandler
    [hindheadstudios]/[bluebird]/js/release/promise.js:512:31

  - promise.js:569 Promise._settlePromise
    [hindheadstudios]/[bluebird]/js/release/promise.js:569:18

  - promise.js:614 Promise._settlePromise0
    [hindheadstudios]/[bluebird]/js/release/promise.js:614:10

  - promise.js:693 Promise._settlePromises
    [hindheadstudios]/[bluebird]/js/release/promise.js:693:18

  - async.js:133 Async._drainQueue
    [hindheadstudios]/[bluebird]/js/release/async.js:133:16

  - async.js:143 Async._drainQueues
    [hindheadstudios]/[bluebird]/js/release/async.js:143:10

  - async.js:17 Immediate.Async.drainQueues [as _onImmediate]
    [hindheadstudios]/[bluebird]/js/release/async.js:17:14


error Command failed with exit code 1.

from gatsby-source-datocms.

came avatar came commented on June 4, 2024

same error here. Don't know what to do and search for :(

from gatsby-source-datocms.

Jonqth avatar Jonqth commented on June 4, 2024

@came @thetre97 try toggling previewMode: to true || false in gatsby-config.js after each change run gatsby develop again it's what works for me.

from gatsby-source-datocms.

thetre97 avatar thetre97 commented on June 4, 2024

@Jonqth I did try that a few times, but it didn't make any difference on either project :/
Don't know if it worked for @came?

from gatsby-source-datocms.

came avatar came commented on June 4, 2024

from gatsby-source-datocms.

thetre97 avatar thetre97 commented on June 4, 2024

I haven't come across this issue for a while now, and on recent sites rm -rf .cache usually clears any errors. Closing this issue.

from gatsby-source-datocms.

EnMod avatar EnMod commented on June 4, 2024

Removing the cache doesn't seem to solve a similar issue for me, here's my log:

success open and validate gatsby-configs — 0.012 s
success load plugins — 0.168 s
success onPreInit — 0.197 s
success delete html and css files from previous builds — 0.010 s
success initialize cache — 0.005 s
success copy gatsby files — 0.016 s
success onPreBootstrap — 0.008 s
error Plugin gatsby-source-datocms returned an error


  TypeError: Cannot read property 'format' of undefined

  - File.js:65 File.get
    [noelquiles.com]/[datocms-client]/lib/local/fields/File.js:65:26

  - File.js:48 File.toMap
    [noelquiles.com]/[datocms-client]/lib/local/fields/File.js:48:22

  - createAssetNode.js:22 createAssetNode
    [noelquiles.com]/[gatsby-source-datocms]/createAssetNode.js:22:43

  - createItemNodes.js:97
    [noelquiles.com]/[gatsby-source-datocms]/createItemNodes.js:97:45

  - Array.forEach

  - createItemNodes.js:49
    [noelquiles.com]/[gatsby-source-datocms]/createItemNodes.js:49:28

  - Array.forEach

  - createItemNodes.js:43
    [noelquiles.com]/[gatsby-source-datocms]/createItemNodes.js:43:11

  - Array.forEach

  - createItemNodes.js:40 createItemNodes
    [noelquiles.com]/[gatsby-source-datocms]/createItemNodes.js:40:26

  - gatsby-node.js:77 _callee$
    [noelquiles.com]/[gatsby-source-datocms]/gatsby-node.js:77:25

  - gatsby-node.js:3 step
    [noelquiles.com]/[gatsby-source-datocms]/gatsby-node.js:3:191

  - gatsby-node.js:3
    [noelquiles.com]/[gatsby-source-datocms]/gatsby-node.js:3:361

Anyone else getting this issue still?

from gatsby-source-datocms.

lewis-fauna avatar lewis-fauna commented on June 4, 2024

Yep, I'm getting this too

from gatsby-source-datocms.

virgincodes avatar virgincodes commented on June 4, 2024

am getting this too

from gatsby-source-datocms.

Related Issues (20)

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.