From 32f5ba40c30112c365763419fb88513228325f82 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Mon, 25 Apr 2022 03:50:40 -0700 Subject: [PATCH] fix(gatsby): Improve warning when a source plugin doesn't create a node (#35478) This often means something went wrong during sourcing. --- packages/gatsby/src/utils/source-nodes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/src/utils/source-nodes.ts b/packages/gatsby/src/utils/source-nodes.ts index 0c08bbc3c2013..ebdbcaf6b51bb 100644 --- a/packages/gatsby/src/utils/source-nodes.ts +++ b/packages/gatsby/src/utils/source-nodes.ts @@ -43,7 +43,7 @@ function warnForPluginsWithoutNodes( pluginsWithNoNodes.map(name => report.warn( - `The ${name} plugin has generated no Gatsby nodes. Do you need it?` + `The ${name} plugin has generated no Gatsby nodes. Do you need it? This could also suggest the plugin is misconfigured.` ) ) }