-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
[material-ui][Link] TypeError: color.charAt is not a function error message #44900
Comments
Hi @andreachiera, can you share a minimal reproduction of the problem you're facing (GH repo, CodeSandbox, or similar)? This will help the maintainers to sort things out more effectively. |
Hi. |
The root cause is that the |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @andreachiera How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
I have defined some new colors under the colorSchemes prop, in particular two new color Schemes light and dark. For each of them I defined some new colors using the augmentColor utility obtained in this way:
I'm using typescript, so I used the module augmentation before the first createTheme to extends the needed interfaces:
And finally I applied a default prop to the Link component:
An error is thrown when I try to start my NextJs project. If I change the value of the defaultProps underline from always to hover, it works.
The error:
Current behavior
No response
Expected behavior
No response
Context
No response
Your environment
Browser: Edge
Dependencies:
"next": "^15.0.3",
both material and material-nextjs at version 6.3.0
Search keywords: A similar issue: #41772
The text was updated successfully, but these errors were encountered: