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

'useId' (imported as 'React') was not found in 'react #24

Closed
Imkl11 opened this issue Feb 13, 2023 · 2 comments
Closed

'useId' (imported as 'React') was not found in 'react #24

Imkl11 opened this issue Feb 13, 2023 · 2 comments

Comments

@Imkl11
Copy link

Imkl11 commented Feb 13, 2023

Hi ,

I am using react and react-dom 17 version in my app and I can't migrate to it version 18 because many npm package that I have installed are not fully compatible with react 18

Hence here I am getting this error here

ERROR in ./node_modules/its-fine/dist/index.js 67:13-24

export 'useId' (imported as 'React') 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)

So How to resolve this , I have no idea that this package is a dependency package of some other package or what but I have not installed this package in my app

@drcmda
Copy link
Member

drcmda commented Feb 13, 2023

i think you need to move back to an older fiber release, i think 6. the 18 release was critical for fiber as it isn't a library but a renderer, it relies on far more than a few react hooks.

btw 17-18, are you sure? i wasn't aware there were breaking changes in 18.

@CodyJasonBennett
Copy link
Member

useId was introduced in React 18, which is the minimum supported by this package and any packages that depend on it. For R3F, the version you'll want to target is 7.0.29, and for react-konva 16.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants