question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attempted import error: 'useCallbackRef' is not exported from '@chakra-ui/hooks'

See original GitHub issue

I 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:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
rafaelsortocommented, Jan 11, 2021

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.

2reactions
gantorenocommented, Jan 11, 2021

Same issue here, using the @chakra-ui/typescript template.

Screen Shot 2021-01-10 at 10 48 56 PM
Read more comments on GitHub >

github_iconTop 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&#38
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found