Attempted import error: 'useCallbackRef' is not exported from '@chakra-ui/hooks'
See original GitHub issueI installed Chakra using the recommended commands on the getting started page, and ran into this issue immediately after adding the ChakraProvider component :S
Failed to compile.
./node_modules/@chakra-ui/portal/dist/esm/portal.js
Attempted import error: 'useCallbackRef' is not exported from '@chakra-ui/hooks'.
I looked in the folder and it is indeed not there 😦
More detail: This issue happened when I tried to use 1.1.3, but I uninstalled hooks and 1.1.3, and installed 1.1.1, and there is no issue.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:6
- Comments:5 (1 by maintainers)
Top Results From Across the Web
reactjs - Attempted import error: 'Test1' is not exported from ...
I am facing Attempted import error: 'Test1' is not exported from 'Test_components'.error When I tried to import that package in my original ...
Read more >How to Fix Attempted Import Error Switch is Not Exported From ...
Command:- npm install react-router-dom@5.3.0In This Video We Will See How to Fix Attempted Import Error Switch is Not Exported From ...
Read more >attempted import error is not exported from - You.com
On upgrading the version of Ant Design to v4, one of the major breaking changes have been that Icon is no longer exported...
Read more >Attempted import error: 'MDBBtnFixed&
after I upgraded mdbreact to 4.19 now I get error: Attempted import error: 'MDBBtnFixed' is not exported from 'mdbreact'. I didnt change anything...
Read more >'useGlobalTheme' is not exported from '@atlaskit/theme ...
node_modules/@atlaskit/blanket/dist/esm/blanket.js Attempted import error: 'useGlobalTheme' is not exported from '@…
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m having the same issue with next js with chakra typescript template. I solved it by installing chakra-react 1.1.2
npm install @chakra-ui/react@1.1.2
It seems there was an update 8 hours ago to version 1.1.3 which is broken.
Same issue here, using the
@chakra-ui/typescript
template.