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

[ site ]: Error in building site locally and CI #239

Open
nebula-aac opened this issue Nov 6, 2023 · 1 comment
Open

[ site ]: Error in building site locally and CI #239

nebula-aac opened this issue Nov 6, 2023 · 1 comment
Labels
area/site follow-up kind/bug Something isn't working

Comments

@nebula-aac
Copy link
Contributor

nebula-aac commented Nov 6, 2023

Current Behavior

After forking the gatsby-plugin-dark-mode and making changes, I received this error during the build process.

Currently this is the behavior from running npm run build

Here is the link to the failed job after adding hotfix to resolve react-server-dom-webpack to react@18

https://github.com/layer5io/sistent/actions/runs/6802346260/job/18495246739

Truncated page data information for the failed page "/identity/typography/overview/": {
  "errors": {},
  "path": "/identity/typography/overview/",
  "slicesMap": {},
  "pageContext": {}
}

failed Building static HTML for pages - 1.811s

 ERROR #95313  HTML.COMPILATION

Building static HTML failed for path "/identity/typography/overview/"

See our docs page for more info on this error: https://gatsby.dev/debug-html


  635 |     rest = _objectWithoutPropertiesLoose(_ref7, _excluded);
  636 |   let {
> 637 |     basename
      | ^
  638 |   } = React.useContext(UNSAFE_NavigationContext);
  639 |   // Rendered into <a href> for absolute URLs
  640 |   let absoluteHref;


  WebpackError: TypeError: Cannot destructure property 'basename' of 'react__WEBPACK_IMPORTED_MODULE_0__.useContext(...)' as it is null.

Expected Behavior

Screenshots/Logs

Environment

  • Host OS: Mac Linux Windows
  • Platform: Docker or Kubernetes
  • Meshery Server Version: stable-v
  • Meshery Client Version: stable-v

Contributor Guides and Resources

@nebula-aac nebula-aac added the kind/bug Something isn't working label Nov 6, 2023
@nebula-aac nebula-aac changed the title [ site ]: Error in building site [ site ]: Error in building site locally Nov 6, 2023
@nebula-aac
Copy link
Contributor Author

close as this is no longer needed

@nebula-aac nebula-aac closed this as not planned Won't fix, can't repro, duplicate, stale Nov 8, 2023
@nebula-aac nebula-aac reopened this Nov 8, 2023
@nebula-aac nebula-aac added area/site priority/high High priority issue labels Nov 8, 2023
@nebula-aac nebula-aac changed the title [ site ]: Error in building site locally [ site ]: Error in building site locally and CI Nov 8, 2023
@nebula-aac nebula-aac added follow-up and removed priority/high High priority issue labels Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/site follow-up kind/bug Something isn't working
Development

No branches or pull requests

1 participant