A plugin tried to update a node field that it doesn't own: #27039
Replies: 4 comments
-
Are you able to share your code? You mentioned:
But I don't know what "this template" is |
Beta Was this translation helpful? Give feedback.
-
What does |
Beta Was this translation helpful? Give feedback.
-
I assume that's helper function that previous version of https://github.com/danielmahon/gatsby-remark-relative-images#v2-breaking-changes plugin were exposing. It was causing problems because it was mutating node objects inline (but afaik ignored |
Beta Was this translation helpful? Give feedback.
-
Sorry I forget to put the template url in. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a website base on this template: https://www.gatsbyjs.com/starters/netlify-templates/gatsby-starter-netlify-cms/
This error occurred after I added new markdown files inside folders of pages.
The full error message is listed below:
ERROR #11321 PLUGIN
"gatsby-node.js" threw an error while running the onCreateNode lifecycle:
A plugin tried to update a node field that it doesn't own:
Node id: xxx
Plugin: default-site-plugin
name: slug
value: "All the new markdown files added by myself"
79 | if (node.internal.type ===
MarkdownRemark
) {80 | const value = createFilePath({ node, getNode })
File: gatsby-node.js:81:5
I am guessing I did something wrong when creating node in gastby-node.js, but I can't tell what's wrong, here is my set up:
Beta Was this translation helpful? Give feedback.
All reactions