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

clean install and getting error on setup ChakraProvider #5621

Closed
1 of 3 tasks
fortniteil opened this issue Feb 19, 2022 · 3 comments
Closed
1 of 3 tasks

clean install and getting error on setup ChakraProvider #5621

fortniteil opened this issue Feb 19, 2022 · 3 comments
Labels
needs triage Issues and pull requests that need triage attention Type: Bug 🐛 Something isn't working

Comments

@fortniteil
Copy link

Description

when i insert ChakraProvider inside index.js on React i am getting error

Link to Reproduction

https://localhost/

Steps to reproduce

  1. Go to '...'
  2. Click on '...'
  3. Scroll down to '...'
  4. See error

Chakra UI Version

1.8.3

Browser

No response

Operating System

  • macOS
  • Windows
  • Linux

Additional Information

ERROR in ./node_modules/@emotion/react/dist/emotion-react.browser.esm.js 95:48-68
export 'useInsertionEffect' (imported as 'useInsertionEffect$1') was not found in 'react' (possible exports: Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, useCallback, useContext, useDebugValue, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, version)
@ ./node_modules/@chakra-ui/css-reset/dist/chakra-ui-css-reset.esm.js 1:0-40 5:42-48
@ ./node_modules/@chakra-ui/react/dist/chakra-ui-react.esm.js 13:0-37 13:0-37
@ ./src/index.js 10:0-50

@fortniteil fortniteil added needs triage Issues and pull requests that need triage attention Type: Bug 🐛 Something isn't working labels Feb 19, 2022
@fortniteil
Copy link
Author

its working on the sandbox its happen only on my pc i think, how can i delete everything belong to chakra or whatever?

@tricertc
Copy link

tricertc commented Feb 19, 2022

It looks like this was caused by a bug introduced in the @emotion/react and @emotion/styled v11.8.0 dependencies.
There's a patch for those on the way and should be fixed in v11.8.1 (see emotion-js/emotion#2652). In the meantime, I downgraded @emotion/react to 11.7.1 and @emotion/styled to 11.6.0 to get by.

The v11.8.1 release of @emotion/react and @emotion/styled is published, updating those dependencies fixes the issue for me.

@TimKolberger
Copy link
Contributor

Closing this as upstream error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issues and pull requests that need triage attention Type: Bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants