aidenybai / million

Optimize React performance and make your React 70% faster in minutes, not months.
https://million.dev
MIT License
15.87k stars 554 forks source link

MUI 5: Warning: Failed prop type: The following props are not supported: `_l`, `_c`, `_p`. Please remove them. #1046

Open Ticalie opened 1 month ago

Ticalie commented 1 month ago

What version of million are you using?

3.1.6

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

Yarn

What operating system are you using?

Mac

What browser are you using?

Firefox

Describe the Bug

When using Vite, MillionLint.vite() and "@mui/material": "5.14.12", "@mui/styles": "5.14.12", "@mui/system": "5.14.12", I get an console error:

Warning: Failed prop type: The following props are not supported: `_l`, `_c`, `_p`. Please remove them.
    at StylesProvider (https://vitejsvitew3tb32-lai0--5173--71ef666c.local-credentialless.webcontainer.io/node_modules/.vite/deps/@mui_styles_StylesProvider.js?v=6c238f86:2635:5)
    at https://vitejsvitew3tb32-lai0--5173--71ef666c.local-credentialless.webcontainer.io/node_modules/.vite/deps/@million_lint_runtime-dev.js?v=669bdfea:817:27
    at ThemeWrapper (https://vitejsvitew3tb32-lai0--5173--71ef666c.local-credentialless.webcontainer.io/src/ThemeWrapper.tsx:172:14)

What's the expected result?

Not getting an console error

Link to Minimal Reproducible Example

https://stackblitz.com/edit/vitejs-vite-w3tb32

Participation

github-actions[bot] commented 1 month ago

Thanks for opening this issue! A maintainer will review it soon.