Skip to content

gatsby-transformer-documentationjs creates non-unique ids #13052

@stefanprobst

Description

@stefanprobst

gatsby-transformer-documentationjs creates nodes that can have non-unique ids, for example for comments like these:

/**
 * This is a free-floating comment
 */

/**
 * This is a function
 */
const fn = () => {}

When trying to build such a site with GATSBY_DB_NODES=loki this will throw:

error Error processing Markdown in node 27c286f3-9f32-5454-9d77-a9265e600a7d:
Trying to update unsynced document. Please save the document first by using insert() or addMany()

See repo: https://github.com/stefanprobst/gatsby-bug-docjs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions