首页 > 解决方案 > 在传递给 createStore 的 preloadedState 参数中发现意外的键“componentDataDependencies”

问题描述

我在构建 Gatsby 项目时遇到了这个错误。它仍然可以构建,但是当我“Gatsby build”和“Gatsby development”时,错误出现在终端中。。有人知道我该如何解决这个问题吗?如果您需要我提供更多信息,请告诉我!

Unexpected key "componentDataDependencies" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "nodes", "logs", "pages", "redirects", "schema", "definitions", "staticQueryComponents", "status",
"webpack", "pageData", "themes", "webpackCompilationHash", "config", "lastAction", "jobsV2", "pageDataStats", "components", "babelrc", "jobs", "nodesByType", "program", "resolvedNodesCache", "nodesTouched", "flattenedPlugins", "pendingPageDataWrites",
"schemaCustomization", "inferenceMetadata", "staticQueriesByTemplate", "queries", "visitedPages". Unexpected keys will be ignored.

标签: reactjsgatsby

解决方案


我有同样的错误并简单'gatsby clean'地修复了它。


推荐阅读