Comments (11)
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.
@Jonqth Unfortunately, that didn't work for me :/ Thanks for the suggestion though! 👍
from gatsby-source-datocms.
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.
same error here. Don't know what to do and search for :(
from gatsby-source-datocms.
@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.
@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.
from gatsby-source-datocms.
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.
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.
Yep, I'm getting this too
from gatsby-source-datocms.
am getting this too
from gatsby-source-datocms.
Related Issues (20)
- Schema says that everything is a Maybe<T> HOT 1
- localeFallbacks not working in latest versions. HOT 21
- Is there a way to enable Strict Mode? HOT 1
- createResolvers source object with missing properties for media field types HOT 1
- media asset default alt and title not respected HOT 3
- Building-Schema (Breaks build) HOT 3
- Gatsby FileSystem routing and linking HOT 2
- Can't opt out of "auto=format" imgix param HOT 1
- Gatsby Preview is not generating manifests and breaks HOT 2
- plugin breaks if you prefix all instances HOT 2
- Plugin doesn't work with Gatsby v5 HOT 8
- Locale at query level returns wrong fields HOT 3
- Multi-paragraph text fields unable to query markdown HOT 12
- Failing with Gatsby v5 and node 18.13.0 HOT 2
- Dependencies and peer-dependencies are incorrect HOT 3
- Request for Contributing Guidelines HOT 2
- Missing version 5.1.0 Change Log HOT 2
- TypeError: Cannot read properties of undefined (reading 'editor') HOT 4
- Fetching all locales of the record HOT 7
- How to use near query HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-datocms.