React/Gatsby/Wordpress卡在“上”;“源节点和转换节点”;

React/Gatsby/Wordpress卡在“上”;“源节点和转换节点”;,wordpress,reactjs,gatsby,Wordpress,Reactjs,Gatsby,我知道已经有几个这样的问题了,但大多数看起来都是封闭的或过时的 我们在本地有一个React/Gatsby网站,从WPEngine上托管的prod WP中获取博客文章和媒体。昨天,它仍然工作正常,当调用盖茨比开发时,它将在约2分钟内启动本地服务器。今天,显然毫无理由,它给了我们以下信息: C:\www\my_react_project>gatsby develop success open and validate gatsby-config - 0.004 s success load p

我知道已经有几个这样的问题了,但大多数看起来都是封闭的或过时的

我们在本地有一个React/Gatsby网站,从WPEngine上托管的prod WP中获取博客文章和媒体。昨天,它仍然工作正常,当调用盖茨比开发时,它将在约2分钟内启动本地服务器。今天,显然毫无理由,它给了我们以下信息:

C:\www\my_react_project>gatsby develop
success open and validate gatsby-config - 0.004 s
success load plugins - 0.195 s
success onPreInit - 0.605 s
success delete html and css files from previous builds - 0.368 s
success initialize cache - 3.565 s
success copy gatsby files - 0.267 s
success onPreBootstrap - 0.008 s
? source and transform nodes
=START PLUGIN=====================================

Site URL: https://somecorpsite.com
Site hosted on Wordpress.com: false
Using ACF: false
Using Auth: undefined undefined
Verbose output: true

Mama Route URL: https://somecorpsite.com/wp-json

? source and transform nodesRoute discovered : /
Invalid route.
Route discovered : /wp/v2
Invalid route.
Route discovered : /wp/v2/posts
Valid route found. Will try to fetch.
Route discovered : /wp/v2/posts/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/posts/(?P<parent>[\d]+)/revisions
Invalid route.
Route discovered : /wp/v2/posts/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/pages
Excluded route from excludedRoutes pattern.
Route discovered : /wp/v2/pages/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/pages/(?P<parent>[\d]+)/revisions
Invalid route.
Route discovered : /wp/v2/pages/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/media
Valid route found. Will try to fetch.
Route discovered : /wp/v2/media/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/types
Valid route found. Will try to fetch.
Route discovered : /wp/v2/types/(?P<type>[\w-]+)
Invalid route.
Route discovered : /wp/v2/statuses
Valid route found. Will try to fetch.
Route discovered : /wp/v2/statuses/(?P<status>[\w-]+)
Invalid route.
Route discovered : /wp/v2/taxonomies
Valid route found. Will try to fetch.
Route discovered : /wp/v2/taxonomies/(?P<taxonomy>[\w-]+)
Invalid route.
Route discovered : /wp/v2/categories
Valid route found. Will try to fetch.
Route discovered : /wp/v2/categories/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/tags
Excluded route from excludedRoutes pattern.
Route discovered : /wp/v2/tags/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/yst_prominent_words
Excluded route from excludedRoutes pattern.
Route discovered : /wp/v2/yst_prominent_words/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/users
Valid route found. Will try to fetch.
Route discovered : /wp/v2/users/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/users/me
Excluded route from excludedRoutes pattern.
Route discovered : /wp/v2/comments
Excluded route from excludedRoutes pattern.
Route discovered : /wp/v2/comments/(?P<id>[\d]+)
Invalid route.
Route discovered : /wp/v2/settings
Excluded route from excludedRoutes pattern.
Route discovered : /oembed/1.0
Invalid route.
Route discovered : /oembed/1.0/embed
Invalid route.
Route discovered : /oembed/1.0/proxy
Invalid route.
Route discovered : /yoast/v1
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/configurator
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/reindex_posts
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/ryte
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/indexables/(?P<object_type>.*)/(?P<object_id>\d+)
Invalid route.
Route discovered : /yoast/v1/statistics
Excluded route from excludedRoutes pattern.
Route discovered : /acf/v3
Invalid route.
Route discovered : /acf/v3/posts/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/posts
Valid route found. Will try to fetch.
Route discovered : /acf/v3/pages/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/pages
Excluded route from excludedRoutes pattern.
Route discovered : /acf/v3/media/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/media
Valid route found. Will try to fetch.
Route discovered : /acf/v3/categories/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/categories
Excluded route from excludedRoutes pattern.
Route discovered : /acf/v3/tags/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/tags
Excluded route from excludedRoutes pattern.
Route discovered : /acf/v3/yst_prominent_words/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/yst_prominent_words
Excluded route from excludedRoutes pattern.
Route discovered : /acf/v3/comments/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/comments
Excluded route from excludedRoutes pattern.
Route discovered : /acf/v3/options/(?P<id>[\w\-\_]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/users/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
Invalid route.
Route discovered : /acf/v3/users
Valid route found. Will try to fetch.
Route discovered : /yoast/v1/prominent_words
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/prominent_words_link/(?P<id>[\d]+)
Invalid route.
Route discovered : /yoast/v1/complete_recalculation
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/link_suggestions
Excluded route from excludedRoutes pattern.
Route discovered : /yoast/v1/redirects
Excluded route from excludedRoutes pattern.

Fetching the JSON data from 10 valid API Routes...

=== [ Fetching wordpress__POST ] === https://somecorpsite.com/wp-json/wp/v2/posts
? source and transform nodes
Total entities : 235
Pages to be requested : 3
? source and transform nodes -> wordpress__POST fetched : 235
Fetching the wordpress__POST took: 17352.127ms

=== [ Fetching wordpress__wp_media ] === https://somecorpsite.com/wp-json/wp/v2/media
? source and transform nodes
Total entities : 4638
Pages to be requested : 47
? source and transform nodes -> wordpress__wp_media fetched : 3212
Fetching the wordpress__wp_media took: 73903.345ms

=== [ Fetching wordpress__wp_types ] === https://somecorpsite.com/wp-json/wp/v2/types
? source and transform nodes -> wordpress__wp_types fetched : 1
Fetching the wordpress__wp_types took: 875.090ms

=== [ Fetching wordpress__wp_statuses ] === https://somecorpsite.com/wp-json/wp/v2/statuses
? source and transform nodes -> wordpress__wp_statuses fetched : 1
Fetching the wordpress__wp_statuses took: 852.903ms

=== [ Fetching wordpress__wp_taxonomies ] === https://somecorpsite.com/wp-json/wp/v2/taxonomies
? source and transform nodes -> wordpress__wp_taxonomies fetched : 1
Fetching the wordpress__wp_taxonomies took: 1083.236ms

=== [ Fetching wordpress__CATEGORY ] === https://somecorpsite.com/wp-json/wp/v2/categories
? source and transform nodes -> wordpress__CATEGORY fetched : 9
Fetching the wordpress__CATEGORY took: 1433.496ms

=== [ Fetching wordpress__wp_users ] === https://somecorpsite.com/wp-json/wp/v2/users
? source and transform nodes -> wordpress__wp_users fetched : 14
Fetching the wordpress__wp_users took: 1790.912ms

=== [ Fetching wordpress__acf_posts ] === https://somecorpsite.com/wp-json/acf/v3/posts
? source and transform nodes -> wordpress__acf_posts fetched : 100
Fetching the wordpress__acf_posts took: 5476.182ms

=== [ Fetching wordpress__acf_media ] === https://somecorpsite.com/wp-json/acf/v3/media
? source and transform nodes -> wordpress__acf_media fetched : 95
Fetching the wordpress__acf_media took: 6159.952ms

=== [ Fetching wordpress__acf_users ] === https://somecorpsite.com/wp-json/acf/v3/users
? source and transform nodes -> wordpress__acf_users fetched : 14
Fetching the wordpress__acf_users took: 16257.418ms

=END PLUGIN=====================================: 126446.712ms
? source and transform nodes

谢谢你的意见

尝试调整终端的大小。我知道。。。这很奇怪,但对大多数人来说都是解决办法请看这里

有人向我建议,这是节点的内存问题。我将以下内容放入终端,它为我解决了问题:

export NODE_OPTIONS=--max_old_space_size=4096

这一切突然发生似乎很奇怪。我会尝试更新你的WP源插件??他们目前在3.0.12上,似乎与此有关()但也没有人回答…谢谢你。非常奇怪的问题。你知道为什么会这样吗?
export NODE_OPTIONS=--max_old_space_size=4096