首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >盖茨比-‘盖茨比开发’命令击中没有错误。GIves没有错误或信息

盖茨比-‘盖茨比开发’命令击中没有错误。GIves没有错误或信息
EN

Stack Overflow用户
提问于 2020-05-28 02:35:48
回答 2查看 1.9K关注 0票数 0

我是盖茨比的新手,每次我运行命令gatsby develop,我的终端就会被击中。

它给出了下面的输出,并且永远停留在那里。没有错误或信息显示。

代码语言:javascript
复制
tarun@192 gatsby-starter-hero-blog-v2 % gatsby develop 
success open and validate gatsby-configs - 0.294s
success load plugins - 5.575s
warn The Google Analytics plugin requires a tracking ID. Did you mean to add it?
success onPreInit - 0.028s
success initialize cache - 0.010s
success copy gatsby files - 0.202s
warn gatsby-plugin-feed was initialized in gatsby-config.js without a title in a feed.
This means that the plugin will use the default feed title, which may not match your use case.
This behavior will be removed in the next major release of gatsby-plugin-feed.
For more info, check out: https://gatsby.dev/adding-rss-feed
success onPreBootstrap - 0.030s
success createSchemaCustomization - 0.292s
success source and transform nodes - 0.530s
success building schema - 1.660s
Using environment config: 'development'
success createPages - 0.115s
success createPagesStatefully - 0.211s
success onPreExtractQueries - 0.002s
success update schema - 0.189s
warn Using the global `graphql` tag is deprecated, and will not be supported in v3.
Import it instead like:  import { graphql } from 'gatsby' in file:
/Users/mac/Documents/Projects/gatsby-starter-hero-blog-v2/node_modules/gatsby-plugin-algolia/example/src/layouts/index.js
success extract queries from components - 0.544s
warn The GraphQL query in the non-page component
Exported queries are only executed for Page components. It's possible you're
trying to create pages in your gatsby-node.js and that's failing for some
reason.

If the failing component(s) is a regular component and not intended to be a page
component, you generally want to use a <StaticQuery> (https://gatsbyjs.org/docs/static-query)
instead of exporting a page query.

If you're more experienced with GraphQL, you can also export GraphQL
fragments from components and compose the fragments in the Page component
query and pass data down into the child component — https://graphql.org/learn/queries/#fragments
success write out requires - 0.092s
success write out redirect data - 0.019s
success Build manifest and related icons - 0.092s
success onPostBootstrap - 0.103s
⠀
info bootstrap finished - 18.181s
⠀
success run queries - 0.062s - 3/3 48.77/s

任何帮助都是非常感谢的。

EN

回答 2

Stack Overflow用户

发布于 2020-05-28 03:08:37

这句话很简单

代码语言:javascript
复制
import { graphql } from 'gatsby'

gatsby-node.js和所有其他.js文件上像这样导入。如果您也共享代码,这将是有帮助的。

票数 1
EN

Stack Overflow用户

发布于 2020-05-28 05:13:35

谢谢各位我找到了解决办法。

实际上,盖茨比只需要节点10。我改变了版本,现在解决了。

请参阅下面的链接

https://twitter.com/tarunnagpal78/status/1265873049707933696

https://github.com/gatsbyjs/gatsby/issues/11167

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62056054

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档