naisutech / react-tree

Hierarchical tree component for React in Typescript
https://naisutech.github.io/react-tree/
MIT License
206 stars 25 forks source link

Error when using React 17 #96

Closed ghost closed 5 months ago

ghost commented 1 year ago

Heya I encountered problem when using this awesome lib with React@17


WARNING in ./node_modules/@naisutech/react-tree/dist/index.es.js 1:31149-31150

export 'useId' (imported as 'd') 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)
ortonomy commented 1 year ago

I'll take a look. Sorry for delay in getting back to you.

ortonomy commented 5 months ago

I wont' fix this now. React 17 is no longer supported