You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just reinstalled my packages and got the following error:
159 |if (process.env.NODE_ENV !== 'production') {
160 |if (!color.main) {
> 161 | throw new Error(['Material-UI: the color provided to augmentColor(color) is invalid.', "The color object needs to have a `main` property or a `".concat(mainShade, "` property.")].join('\n'));| ^
162 | }
163 | }
164 |
WebpackError: Material-UI: the color provided to augmentColor(color) is invalid.
- createPalette.js:161 augmentColor
node_modules/@material-ui/core/esm/styles/createPalette.js:161:1
- createPalette.js:202 createPalette
node_modules/@material-ui/core/esm/styles/createPalette.js:202:1
- createMuiTheme.js:28 createMuiTheme
node_modules/@material-ui/core/esm/styles/createMuiTheme.js:28:30
- theme.js:3 Module../src/gatsby-theme-material-ui-top-layout/theme.js
src/gatsby-theme-material-ui-top-layout/theme.js:3:30
- wrap-with-provider.js:1 Module../node_modules/gatsby-theme-material-ui-top-layout/src/wrap-with-provider.js
node_modules/gatsby-theme-material-ui-top-layout/src/wrap-with-provider.js:1:1
- gatsby-ssr.js:1 Module../node_modules/gatsby-theme-material-ui-top-layout/gatsby-ssr.js
node_modules/gatsby-theme-material-ui-top-layout/gatsby-ssr.js:1:1
It did work before the update. These are the relevant files.
src/gatsby-theme-material-ui-top-layout/theme.js:
import"./src/styles/global.css"import{AppProvider}from"./src/components/app-context"importReactfrom"react"exportconstwrapRootElement=({ element })=>{return<AppProvider>{element}</AppProvider>}
Hi,
I just reinstalled my packages and got the following error:
It did work before the update. These are the relevant files.
src/gatsby-theme-material-ui-top-layout/theme.js:
gatsby-browser.js:
package-lock.json
I am not using a custom gatsby-ssr.js and palette.primary.main is defined for sure.
Can't really say, what changed. It is a pretty standard setup.
The text was updated successfully, but these errors were encountered: