Я новичок в смешанных ChakraUI и Typescript. Следуя ChakraUI DO C, я создал такой файл:
import { theme } from '@chakra-ui/core';
const customTheme = {
...theme,
colors: {
...theme.colors,
brand: {
900: '#1a365d',
800: '#153e75',
700: '#2a69ac',
},
},
};
export default customTheme;
К сожалению, на customTheme
я избавился от этих ошибок:
Exported variable 'customTheme' has or is using name 'ZIndices' from external module "/Users/username/project-test/node_modules/@chakra-ui/core/dist/theme/index" but cannot be named.ts(4023)
Exported variable 'customTheme' has or is using name 'Radii' from external module "/Users/username/project-test/node_modules/@chakra-ui/core/dist/theme/index" but cannot be named.ts(4023)
Exported variable 'customTheme' has or is using name 'Opacity' from external module "/Users/username/project-test/node_modules/@chakra-ui/core/dist/theme/index" but cannot be named.ts(4023)
Exported variable 'customTheme' has or is using name 'Borders' from external module "/Users/username/project-test/node_modules/@chakra-ui/core/dist/theme/index" but cannot be named.ts(4023)
Есть подсказка? Использование: TS: последняя версия ChakraUI: последняя версия
Заранее спасибо