Skip to content
This repository has been archived by the owner on Nov 11, 2022. It is now read-only.

Getting a strange error on compilation relating to the plugin, with no recent changes to my code. #9

Open
conradlin opened this issue Sep 5, 2020 · 2 comments

Comments

@conradlin
Copy link

ERROR #11321 PLUGIN

"gatsby-source-notion-database" threw an error while running the sourceNodes lifecycle:

Cannot convert undefined or null to object

50 | })
51 | // console.log(_dbMap, cacheTable)

52 | let db = await nb.fetchAll(_dbMap)
| ^
53 | await Promise.all(Object.entries(db).map(async (i) => {
54 | let [tableName, collection] = i
55 | await genApiData(nb, collection, tableName, 'id', createNode, createNodeId, createContentDigest, cacheTable)

File: node_modules\gatsby-source-notion-database\gatsby-node.js:52:14

@conradlin
Copy link
Author

Wondering if anybody else had similar experiences, did Notion close their API?

@ashlynbaum
Copy link

I'm having the same problem, also all of the SVGs stopped loading as content at the same time. I suspect notion updated their API

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants