ieee-uottawa / ieeeuottawa.ca

IEEE uOttawa Student Branch Repository
https://ieeeuottawa.ca/
1 stars 3 forks source link

Cannot Render DataGrid #132

Open RyanFleck opened 3 years ago

RyanFleck commented 3 years ago

Attempting to statically render this component fails:

image

Build output:

yarn run v1.22.5
$ gatsby build
success open and validate gatsby-configs - 0.230s
success load plugins - 2.838s
success onPreInit - 0.113s
success delete html and css files from previous builds - 0.064s
success initialize cache - 0.014s
success copy gatsby files - 0.472s
success onPreBootstrap - 0.065s
success createSchemaCustomization - 0.014s
success Checking for changed pages - 0.001s
success source and transform nodes - 1.765s
success building schema - 1.698s
info Total nodes: 899, SitePage nodes: 29 (use --verbose for breakdown)
success createPages - 0.261s
success Checking for changed pages - 0.001s
success createPagesStatefully - 0.412s
success Cleaning up stale page-data - 0.021s
success update schema - 0.086s
success onPreExtractQueries - 0.003s
success extract queries from components - 1.212s
success write out redirect data - 0.003s
success onPostBootstrap - 0.001s
info bootstrap finished - 22.309s
success run static queries - 0.032s - 1/1 31.56/s
success run page queries - 0.068s - 43/43 627.93/s
success write out requires - 0.015s
success Building production JavaScript and CSS bundles - 110.635s
success Rewriting compilation hashes - 0.017s
failed Building static HTML for pages - 28.916s
error Building static HTML failed for path "/ContactUs/OfficeHours"

  24 |         : getPageContext();
  25 |
> 26 |     const bodyHTML = renderToString(
     |                      ^
  27 |         <JssProvider registry={muiPageContext.sheetsRegistry}>
  28 |             {bodyComponent}
  29 |         </JssProvider>

  WebpackError: Minified React error #62; visit https://reactjs.org/docs/error-decoder.html?inva  riant=62&args[]= for the full message or use the non-minified dev environment for full errors   and additional helpful warnings.

  - gatsby-ssr.js:26
    gatsby-ssr.js:26:22

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
silverAndroid commented 3 years ago

@RyanFleck issue is here: https://github.com/ieee-uottawa/ieeeuottawa.ca/commit/c1f499df5ce76e00989d93f55ee928af65662da4#diff-bcf1e70a99f5aa8979b4f1108375a321ed06a4453aea2e0759eb8f3b15a6cd69R44 (line 44 in frontend/src/pages/ContactUs/OfficeHours.jsx)

that's supposed to be an object, not a string