Gatsby 5 构建错误(错误#11321 API.NODE.EXECUTION)

问题描述 投票:0回答:3

我在我的项目中使用 GatsbyJS 和 Wordpress。将 Gatsby 从 v4 更新到最新的 v5 后,我无法在产品(gatsby 构建)和开发上构建项目。此外,在“gatsby clean”之后,第一个“gatsby develop”工作正常,但第二个没有完成。有人可以帮助我吗?

“gatsby build”问题

ERROR #85928  GRAPHQL.QUERY_RUNNING

An error occurred during parallel query running.
Go here for troubleshooting tips: https://gatsby.dev/pqr-feedback



  Error: Interface field WpConnectionType.nodes expected but WpEnqueuedScriptConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpEnqueuedStylesheetConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpActionMonitorActionConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpPluginConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpThemeConnectionType does not provide it.
  
  - graphql-runner.ts:129 GraphQLRunner.validate
    [aristek-gatsby-website]/[gatsby]/src/query/graphql-runner.ts:129:22
  
  - graphql-runner.ts:218 GraphQLRunner.query
    [aristek-gatsby-website]/[gatsby]/src/query/graphql-runner.ts:218:49
  
  - query-runner.ts:140 queryRunner
    [aristek-gatsby-website]/[gatsby]/src/query/query-runner.ts:140:14

“盖茨比开发”问题

ERROR #11321  API.NODE.EXECUTION

"gatsby-node.js" threw an error while running the createPages lifecycle:

Interface field WpConnectionType.nodes expected but WpEnqueuedScriptConnectionType does not provide it.

Interface field WpConnectionType.nodes expected but WpEnqueuedStylesheetConnectionType does not provide it.

Interface field WpConnectionType.nodes expected but WpActionMonitorActionConnectionType does not provide it.

Interface field WpConnectionType.nodes expected but WpPluginConnectionType does not provide it.

Interface field WpConnectionType.nodes expected but WpThemeConnectionType does not provide it.

  51 |
  52 | exports.createPages = async ({ actions, graphql, reporter }) => {
> 53 |   await createBlogTags({ actions, graphql, reporter })
     |         ^
  54 |   await createBlogArchive({ actions, graphql, reporter })
  55 |   await createBlogArticle({ actions, graphql, reporter })
  56 |   await createArBlogArticle({ actions, graphql, reporter })

File: gatsby-node.js:53:9



  Error: Interface field WpConnectionType.nodes expected but WpEnqueuedScriptConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpEnqueuedStylesheetConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpActionMonitorActionConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpPluginConnectionType does not provide it.
  Interface field WpConnectionType.nodes expected but WpThemeConnectionType does not provide it.
  
  - graphql-runner.ts:129 GraphQLRunner.validate
    [aristek-gatsby-website]/[gatsby]/src/query/graphql-runner.ts:129:22
  
  - graphql-runner.ts:218 GraphQLRunner.query
    [aristek-gatsby-website]/[gatsby]/src/query/graphql-runner.ts:218:49
  
  - create-graphql-runner.ts:57 apply
    [aristek-gatsby-website]/[gatsby]/src/bootstrap/create-graphql-runner.ts:57:8
  
  - create-pages.ts:36 wrappedGraphQL
    [aristek-gatsby-website]/[gatsby]/src/services/create-pages.ts:36:47
  
  - createBlogTags.js:8 module.exports
    /Users/vilaribov/MyFiles/_webDev/aristek-gatsby-website/node/createBlogTags.js:8:24
  
  - gatsby-node.js:53 Object.exports.createPages
    /Users/vilaribov/MyFiles/_webDev/aristek-gatsby-website/gatsby-node.js:53:9
  
  - api-runner-node.js:487 runAPI
    [aristek-gatsby-website]/[gatsby]/src/utils/api-runner-node.js:487:37
  

failed createPages - 0.055s

套餐

"gatsby": "5.7.0",
  "gatsby-plugin-google-tagmanager": "5.7.0",
    "gatsby-plugin-image": "3.7.0",
    "gatsby-plugin-manifest": "5.7.0",
    "gatsby-plugin-no-index": "1.0.2",
    "gatsby-plugin-offline": "6.7.0",
    "gatsby-plugin-postcss": "6.7.0",
    "gatsby-plugin-react-helmet": "6.7.0",
    "gatsby-plugin-react-svg": "3.3.0",
    "gatsby-plugin-robots-txt": "1.8.0",
    "gatsby-plugin-root-import": "2.0.9",
    "gatsby-plugin-sharp": "5.7.0",
    "gatsby-plugin-sitemap": "6.7.0",
    "gatsby-source-filesystem": "5.7.0",
    "gatsby-source-wordpress": "7.7.0",
    "gatsby-transformer-sharp": "5.7.0",

这个解决方案对我没有帮助。

gatsby
3个回答
1
投票

我遇到了类似的情况。我想这不是 WP Gatsby WordPress 插件的意思,而是 WPGraphQL WordPress 插件需要降级到版本 1.13.10.


0
投票

我看到了类似的错误。我将 WP Gatsby Wordpress 插件从 v1.14 降级到 v1.13.10,这似乎让我的构建暂时可以工作。


0
投票

谢谢,我遇到了同样的问题。降级 WPGraphQL WordPress 插件解决了这个问题。但我真的希望会有一个修复,因为我不喜欢保留旧版本的插件......

© www.soinside.com 2019 - 2024. All rights reserved.