Skip to content

Commit

Permalink
add docs link
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBarnes committed Feb 11, 2022
1 parent 506db86 commit bc1b4ab
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/gatsby-cli/src/structured-errors/error-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,41 +627,37 @@ const errors = {

/** Node Manifest warnings */
"11801": {
// @todo add docs link to "using Preview" once it's updated with an explanation of ownerNodeId
text: ({ inputManifest }): string => `${getSharedNodeManifestWarning(
inputManifest
)} but Gatsby couldn't find a page for this node.
If you want a manifest to be created for this node (for previews or other purposes), ensure that a page was created (and that a ownerNodeId is added to createPage() if you're not using the Filesystem Route API).\n`,
If you want a manifest to be created for this node (for previews or other purposes), ensure that a page was created (and that a ownerNodeId is added to createPage() if you're not using the Filesystem Route API). See https://www.gatsbyjs.com/docs/conceptual/content-sync for more info.\n`,
level: Level.WARNING,
category: ErrorCategory.USER,
},

"11802": {
// @todo add docs link to "using Preview" once it's updated with an explanation of ownerNodeId
text: ({ inputManifest, pagePath }): string =>
`${getSharedNodeManifestWarning(
inputManifest
)} but Gatsby didn't find an ownerNodeId for the page at ${pagePath}\nUsing the first page that was found with the node manifest id set in pageContext.id in createPage().\nThis may result in an inaccurate node manifest (for previews or other purposes).`,
)} but Gatsby didn't find an ownerNodeId for the page at ${pagePath}\nUsing the first page that was found with the node manifest id set in pageContext.id in createPage().\nThis may result in an inaccurate node manifest (for previews or other purposes). See https://www.gatsbyjs.com/docs/conceptual/content-sync for more info.`,
level: Level.WARNING,
category: ErrorCategory.USER,
},

"11805": {
// @todo add docs link to "using Preview" once it's updated with an explanation of ownerNodeId
text: ({ inputManifest, pagePath }): string =>
`${getSharedNodeManifestWarning(
inputManifest
)} but Gatsby didn't find an ownerNodeId for the page at ${pagePath}\nUsing the first page that was found with the node manifest id set in pageContext.slug in createPage().\nThis may result in an inaccurate node manifest (for previews or other purposes).`,
)} but Gatsby didn't find an ownerNodeId for the page at ${pagePath}\nUsing the first page that was found with the node manifest id set in pageContext.slug in createPage().\nThis may result in an inaccurate node manifest (for previews or other purposes). See https://www.gatsbyjs.com/docs/conceptual/content-sync for more info.`,
level: Level.WARNING,
category: ErrorCategory.USER,
},

"11803": {
// @todo add docs link to "using Preview" once it's updated with an explanation of ownerNodeId
text: ({ inputManifest, pagePath }): string =>
`${getSharedNodeManifestWarning(
inputManifest
)} but Gatsby didn't find an ownerNodeId for the page at ${pagePath}\nUsing the first page where this node is queried.\nThis may result in an inaccurate node manifest (for previews or other purposes).`,
)} but Gatsby didn't find an ownerNodeId for the page at ${pagePath}\nUsing the first page where this node is queried.\nThis may result in an inaccurate node manifest (for previews or other purposes). See https://www.gatsbyjs.com/docs/conceptual/content-sync for more info.`,
level: Level.WARNING,
category: ErrorCategory.USER,
},
Expand Down

0 comments on commit bc1b4ab

Please sign in to comment.