Я пытаюсь создать блог, используя страпи и гэтсби.Вот ссылка на учебник, который я использую.https://scotch.io/@pierreburgy92/how-to-build-a-static-blog-with-gatsby-and-strapi
Ошибки, которые я получаю после выполнения команды 'gatsby develop', следующие:
ERROR Failed to compile with 2 errors 9:16:06 AM
error in ./src/components/image.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/image.js
20:9 error Cannot query field "file" on type "Query". Did you mean "site"? graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/index.js 9:0-40 20:25-30
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
error in ./src/components/seo.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/seo.js
20:13 error Cannot query field "description" on type "SiteSiteMetadata" graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/page-2.js 9:0-36 12:63-66
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
error ✖ 「wdm」:
ERROR in ./src/components/image.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/image.js
20:9 error Cannot query field "file" on type "Query". Did you mean "site"? graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/index.js 9:0-40 20:25-30
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
ERROR in ./src/components/seo.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/seo.js
20:13 error Cannot query field "description" on type "SiteSiteMetadata" graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/page-2.js 9:0-36 12:63-66
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
info ℹ 「wdm」: Failed to compile.
WAIT Compiling... 9:16:06 AM
info ℹ 「wdm」: Compiling...
ERROR Failed to compile with 2 errors 9:16:06 AM
error in ./src/components/image.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/image.js
20:9 error Cannot query field "file" on type "Query". Did you mean "site"? graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/index.js 9:0-40 20:25-30
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
error in ./src/components/seo.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/seo.js
20:13 error Cannot query field "description" on type "SiteSiteMetadata" graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/page-2.js 9:0-36 12:63-66
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
error ✖ 「wdm」:
ERROR in ./src/components/image.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/image.js
20:9 error Cannot query field "file" on type "Query". Did you mean "site"? graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/index.js 9:0-40 20:25-30
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
ERROR in ./src/components/seo.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/quinten/Documents/gatsby-strapi-tutorial/blog/src/components/seo.js
20:13 error Cannot query field "description" on type "SiteSiteMetadata" graphql/template-strings
✖ 1 problem (1 error, 0 warnings)
@ ./src/pages/page-2.js 9:0-36 12:63-66
@ ./.cache/sync-requires.js
@ ./.cache/app.js
@ multi event-source-polyfill (webpack)-hot-middleware/client.js?path=/__webpack_hmr&reload=true&overlay=false ./.cache/app
info ℹ 「wdm」: Failed to compile.
>
Я сделал много поисков в Интернете и проверил много форумов, чтобы попытатьсянайти решение.У кого-нибудь есть идеи?моя версия gatsby 2.5.15, если это поможет.