Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import from @chakra-ui/theme/components #7130

Closed
3 tasks
yukukotani opened this issue Dec 19, 2022 · 1 comment · Fixed by #7135
Closed
3 tasks

Cannot import from @chakra-ui/theme/components #7130

yukukotani opened this issue Dec 19, 2022 · 1 comment · Fixed by #7135

Comments

@yukukotani
Copy link
Contributor

yukukotani commented Dec 19, 2022

Description

Since 2.4.2, we can inject themes of each component using extendBaseTheme.

However, when trying to import default component themes from @chakra-ui/theme/components, it fails with the error below.

Cannot find module '@chakra-ui/theme/components' or its corresponding type declarations.ts(2307)

It seems that ./dist/components/index.d.ts in theme package isn't generated. Foundations has the same issue too.

Link to Reproduction

https://codesandbox.io/s/vibrant-black-c5n2qy?file=/src/index.tsx

Steps to reproduce

See codesandbox

Chakra UI Version

2.4.4

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

No response

@yukukotani
Copy link
Contributor Author

cc: @anubra266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant