Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FAILED TO Building static HTML for pages #37947

Closed
2 tasks done
iamsurajmandal opened this issue Apr 15, 2023 · 1 comment
Closed
2 tasks done

FAILED TO Building static HTML for pages #37947

iamsurajmandal opened this issue Apr 15, 2023 · 1 comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@iamsurajmandal
Copy link

Preliminary Checks

Description

HI, I am facing a build failure and there is no clear documentation available to fix the issue.
https://www.gatsbyjs.com/dashboard/49d6cc1c-3872-4b8c-8197-ced1fc04cbca/sites/a82f4d88-e72d-4bb2-8bfd-51e154a8a7de/deploys
ERROR :
Truncated page data information for the failed page /404/: { "errors": {}, "path": /404/, "slicesMap": {}, "pageContext": {} }
ERROR 2 :
Building static HTML failed for path /404/

Screenshot 2023-04-05 at 6 06 04 PM
Screenshot 2023-04-05 at 6 10 27 PM
Screenshot 2023-04-05 at 6 13 30 PM
npm ERR! While resolving: netlify-cms-app@2.15.72 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! peer react@">=16.3.0" from @emotion/core@10.3.1 npm ERR! node_modules/@emotion/core npm ERR! peer @emotion/core@"^10.0.27" from @emotion/styled@10.3.0 npm ERR! node_modules/@emotion/styled npm ERR! @emotion/styled@"^10.0.27" from netlify-cms-app@2.15.72 npm ERR! node_modules/netlify-cms-app npm ERR! peer netlify-cms-app@"^2.9.0" from gatsby-plugin-netlify-cms@7.8.0 npm ERR! node_modules/gatsby-plugin-netlify-cms npm ERR! 1 more (the root project) npm ERR! 17 more (netlify-cms-backend-azure, ...) npm ERR! peer @emotion/core@"^10.0.28" from @emotion/styled-base@10.3.0 npm ERR! node_modules/@emotion/styled-base npm ERR! @emotion/styled-base@"^10.3.0" from @emotion/styled@10.3.0 npm ERR! node_modules/@emotion/styled npm ERR! @emotion/styled@"^10.0.27" from netlify-cms-app@2.15.72 npm ERR! node_modules/netlify-cms-app npm ERR! 17 more (netlify-cms-backend-azure, ...) npm ERR! 22 more (netlify-cms-app, netlify-cms-backend-azure, ...) npm ERR! peer react@">=16.8.0" from @emotion/react@11.10.6 npm ERR! node_modules/@emotion/react npm ERR! @emotion/react@"^11.1.1" from react-select@4.3.1 npm ERR! node_modules/react-select npm ERR! react-select@"^4.0.0" from netlify-cms-widget-code@1.3.4 npm ERR! node_modules/netlify-cms-widget-code npm ERR! netlify-cms-widget-code@"^1.3.4" from netlify-cms-app@2.15.72 npm ERR! node_modules/netlify-cms-app npm ERR! 2 more (netlify-cms-widget-relation, netlify-cms-widget-select) npm ERR! 48 more (@emotion/styled, @emotion/styled-base, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.4 || ^17.0.0" from netlify-cms-app@2.15.72 npm ERR! node_modules/netlify-cms-app npm ERR! peer netlify-cms-app@"^2.9.0" from gatsby-plugin-netlify-cms@7.8.0

Reproduction Link

https://github.com/iamsurajmandal/my-blogs

Steps to Reproduce

  1. trigger a build

...

Expected Result

build succeeded.
https://www.gatsbyjs.com/dashboard/49d6cc1c-3872-4b8c-8197-ced1fc04cbca/sites/a82f4d88-e72d-4bb2-8bfd-51e154a8a7de/deploys

Actual Result

error :
https://www.gatsbyjs.com/dashboard/49d6cc1c-3872-4b8c-8197-ced1fc04cbca/sites/a82f4d88-e72d-4bb2-8bfd-51e154a8a7de/deploys

Environment

node x, gatsby. 
https://www.gatsbyjs.com/dashboard/49d6cc1c-3872-4b8c-8197-ced1fc04cbca/sites/a82f4d88-e72d-4bb2-8bfd-51e154a8a7de/deploys

Config Flags

no flags

@iamsurajmandal iamsurajmandal added the type: bug An issue or pull request relating to a bug in Gatsby label Apr 15, 2023
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 15, 2023
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 17, 2023
@LekoArts
Copy link
Contributor

Hi!

You've added https://www.gatsbyjs.com/plugins/gatsby-plugin-google-gtag/ but you also need to configure the plugin. You need to add options like trackingIds to the plugin options. Then it'll work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants