You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 */constfn=()=>{}
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()
Some context on why this happened: documentation creates 2 objects for the same path (fn function):
I'm not sure if this is something that actually should be handled in documentation package, but I did open PR (#13058) with fix/workaround for this.
Other thought I have about this is that, while it's nice that loki helped to catch this issue in documentatino plugin - it essentially mean you can't really update plugin with loki? Because this is what was happening with documentation - it created a node, and then tried to create another node with same id and loki just throw - but it should work (even if outcome in this scenario is not desired).
gatsby-transformer-documentationjs
creates nodes that can have non-unique ids, for example for comments like these:When trying to build such a site with
GATSBY_DB_NODES=loki
this will throw:See repo: https://github.com/stefanprobst/gatsby-bug-docjs
The text was updated successfully, but these errors were encountered: