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.

'useCallbackRef' is not exported from '@chakra-ui/hooks'

See original GitHub issue

Discord 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:closed
  • Created 3 years ago
  • Reactions:35
  • Comments:19 (5 by maintainers)

github_iconTop GitHub Comments

9reactions
kafilncommented, Jan 10, 2021

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",

4reactions
JohannesKlausscommented, Jan 11, 2021

Also have problem running it with Storybook:

logical-prop.js:29 Uncaught TypeError: Object(...) is not a function
    at logicalTransform (logical-prop.js:29)
    at Object.logical (logical-prop.js:41)
    at Module.../../node_modules/@chakra-ui/styled-system/dist/esm/config/position.js (position.js:20)
    at __webpack_require__ (bootstrap:851)
    at fn (bootstrap:150)
    at Module.../../node_modules/@chakra-ui/styled-system/dist/esm/config/index.js (index.js:1)
    at __webpack_require__ (bootstrap:851)
    at fn (bootstrap:150)
    at Module.../../node_modules/@chakra-ui/styled-system/dist/esm/index.js (index.js:1)
    at __webpack_require__ (bootstrap:851)
Read more comments on GitHub >

github_iconTop 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 >

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