antd-theme
antd-theme copied to clipboard
Provide runtime dynamic theme for ant design.
UnhandledPromiseRejectionWarning: Error: craco: Malformed plugin at index: 0 of 'plugins'.
When using the guide in the README.md I get the following error in a Next.js project: ``` /Users/mark/web/formula-stocks/node_modules/antd-theme/lib/runtime.js:2 import Node from 'less/lib/less/tree/node'; ^^^^^^ SyntaxError: Cannot use import statement outside a...
目前有很多报错,找了全网各种方法,就看你这个比较有可能实现切换主题了
I'm getting this error when using customize-cra ``` ./node_modules/antd/es/list/style/index.less & when (@theme = dark) { background: @list-customize-card-bg; ^ Error evaluating function `if`: Cannot read property 'eval' of undefined Error in...
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...
When using the `custimze-cra` example in the README.md I get the following error: ``` ./node_modules/antd/es/card/style/index.less 5:0 Module parse failed: 'import' and 'export' may only appear at the top level (5:0)...
If I provide in themes only the default one (or if I do not provide any theme) I get this object from `useTheme()`: ``` { name: "default" themes: [ name:...
When running my project with "noImplicitAny": true I receive this error: ``` TypeScript error in C:/**/node_modules/antd-theme/lib/index.tsx(8,8): Could not find a declaration file for module './runtime'. 'C:/**/node_modules/antd-theme/lib/runtime.js' implicitly has an 'any'...
I'm getting `TypeError: Cannot read property 'tap' of undefined` when trying to compile with Webpack 5. ``` tapable.hooks[name].tap(reason, callback); ^ ``` After some digging, I notice that webpack 5 does...