-
Notifications
You must be signed in to change notification settings - Fork 49
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
Error: MUI: Unsupported var(--mui-palette-common-white)
color.
#284
Comments
Did you fixed ? |
Would either of you have more detailed steps to reproduce the issue? Could you demonstrate in a CodeSandbox for instance? I haven't seen an error like this before. Also would be useful to see a larger traceback from the error. |
Hello @sjdemartini We configure var(--mui-palette-common-white) as css global var for MUI. I make a temporal fix by wrapping entire TipTap module on a new theme like this: `'use client'; import { createTheme, ThemeProvider } from '@mui/material/styles'; const theme = createTheme(); export default function Rte() {
}` and my color-schemes.ts is like this:
|
You may be able to confirm if you look at the full traceback, but it looks like this is caused by mui-tiptap using MUI's color utils on MUI theme variables (like this Line 220 in fde6c3e
I'm not sure if there's a recommended approach for handling this sort of scenario, as I haven't used CSS vars with MUI myself. Do you know? |
I just followed the example in the getting started section of the documentation. This is my code:
const rteRef = useRef<RichTextEditorRef>(null);
But I keep getting this error:
Any clues as to why?
The text was updated successfully, but these errors were encountered: