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
In styles/createContext.js line 9 the color is printed correctly.
However, when placed in the configuration like at line 12 the error happens.
Changing the line 12 from purple[500] to purple everything works fine.
The text was updated successfully, but these errors were encountered:
consttheme=createMuiTheme({palette: {primary: purple[500],//DO NOT WORK//primary: purple, //WORKS FINEsecondary: green,},});
It's the expected behavior. You mush have a warning in the console explaining more what's going on. You can learn more about our wordings in the documentation. You are providing a hue of a color, not a palette. We often assimilate a color to be a palette.
Hello!
I cloned the project fount at: https://github.com/callemall/material-ui/tree/v1-beta/examples/create-react-app as docs suggest and I also had an error as mentioned in: #4664
Apart this, I tried to change colors to customize them and I had:
TypeError: undefined is not an object (evaluating 'color.charAt')
Expected Behavior
Current Behavior
Steps to Reproduce (for bugs)
Please, check out the cloned code from you at: https://codesandbox.io/s/rr25l6v7rq
In styles/createContext.js line 9 the color is printed correctly.
However, when placed in the configuration like at line 12 the error happens.
Changing the line 12 from purple[500] to purple everything works fine.
The text was updated successfully, but these errors were encountered: