reactjs - 在传递给 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.
解决方案
我有同样的错误并简单'gatsby clean'
地修复了它。
推荐阅读
- c# - 表值参数不适用于 Get 方法
- python - 如何按类名定位 btn?
- javascript - Youtube iframe 视频在 UC 浏览器中不起作用
- excel - 使用 VBA 删除 powerpoint 上的内容
- ios - Swift Presenting Controller Dismiss Bar 指示器
- php - 带有命名参数的 PHP PDO 中的存储过程
- r - Zelen 的获胜者规则随机化方案
- julia - `xcrun: error: invalid active development` 运行 make.jl 以生成 Julia 文档时
- node.js - 如何在 React Native 上将 JWT 令牌与 axios 一起使用
- reactjs - 如何使用基于状态的 props 组织 React 动态组件