'useCallbackRef' is not exported from '@chakra-ui/hooks'
See original GitHub issueDiscord Link On a fresh install with CRA, the following compiler error appears
./node_modules/@chakra-ui/portal/dist/esm/portal.js
Attempted import error: 'useCallbackRef' is not exported from '@chakra-ui/hooks'.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:35
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Chakra UI Setup with Next.js Throwing Error - Stack Overflow
js Attempted import error: 'useCallbackRef' is not exported from '@chakra-ui/hooks'. Here's my _app.js file: import { ChakraProvider } from "@ ...
Read more >@chakra-ui/hooks - CodeSandbox
use-callback-ref.ts. use-clipboard.ts ... Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >Version 2.2.7 - Chakra UI
@chakra-ui/react-use-callback-ref@2.0.1#. Patch Changes# ... Fix regression where localStorageManager was not exported ... @chakra-ui/hooks@2.0.7#.
Read more >use-callback-ref - npm
Some commands are hooks based, and returns the same refs/functions every render. But some are not, to be used in classes or non-react...
Read more >cannot find module '@emotion/react/jsx-runtime' or its ...
I have not published the library anywhere, so just using yarn link for now. In my component library, my rollup config looks like:...
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
If you are facing the same issue you can fix this temporary by changing your package.json to:
"@chakra-ui/react": "1.1.2",
NOT"@chakra-ui/react": "^1.1.2",
Also have problem running it with Storybook: