Open realjesset opened 4 years ago
I use craco to use antd, and I am issues using this plugin. I keep getting a could not find a declaration file for module './runtime' in 'antd-theme/lib/index.tsx(8,8)'.
craco
could not find a declaration file for module './runtime' in 'antd-theme/lib/index.tsx(8,8)'
here's my craco config file:
const CracoLessPlugin = require("craco-less"); const { getThemeVariables } = require('antd/dist/theme'); const AntdThemePlugin = require('antd-theme/plugin'); module.exports = { plugins: [{ plugin: CracoLessPlugin, options: { lessLoaderOptions: { lessOptions: { modifyVars: { "@primary-color": "#1DA57A", // ...getThemeVariables({ // dark: true, // compact: true // }) }, javascriptEnabled: true } } } }], webpack: { plugins: [new AntdThemePlugin({ // Variables declared here can be modified at runtime variables: ['primary-color'], themes: [{ name: 'dark', filename: require.resolve('antd/lib/style/themes/dark.less'), }, { name: 'compact', filename: require.resolve('antd/lib/style/themes/compact.less'), }, ], })] } };
Any news about this?
I use
craco
to use antd, and I am issues using this plugin. I keep getting acould not find a declaration file for module './runtime' in 'antd-theme/lib/index.tsx(8,8)'
.here's my craco config file: