I have tried to get this solution working with next.js, react-app-rewired + customize-cra and react-app-rewired vanilla.
All 3 attempts have failed for a really simple application.
the next.js and customize-cra attempts produced errors. But the vanilla react-app-rewired runs, it even displays the theme Selector and I can console log the output of useTheme. But no styles ever gets loaded.
I have tried to get this solution working with next.js, react-app-rewired + customize-cra and react-app-rewired vanilla.
All 3 attempts have failed for a really simple application.
the next.js and customize-cra attempts produced errors. But the vanilla react-app-rewired runs, it even displays the theme Selector and I can console log the output of useTheme. But no styles ever gets loaded.
Here's the config-overrides.js
I also tried loading a basic
.less
file, and the output for this doesn't load. either :/Please help, I have spent a full week trying to get a dynamic antd theme switcherr working with either next.js or CRA 🙏