-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Description
WARNING in ./node_modules/react-accessible-accordion/dist/es/index.js 548:16-21
export 'useId' (imported as 'useId') 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)
This attempts to import from React:
import { createElement, PureComponent, createContext, useId, useState, Fragment } from 'react';
but useId is only in React 18.
It would be better to import React and then check if 'useId' is a defined property.
nothingrandom, andyhailscode, maks-io, ashleynexvelsolutions, ChrisMoutsos and 6 more
Metadata
Metadata
Assignees
Labels
No labels