avaya-dux / neo-react-library

A React implementation of the Avaya Neo Design system. Written in TS.
https://design.avaya.com/docs/setup
Other
5 stars 2 forks source link

Getting error on npm build due to Menu component from neo-react #192

Closed ranjit-redekar closed 1 year ago

ranjit-redekar commented 1 year ago

name: "I'm using a Menu component from neo-react and due to this component build id getting failed." description: ERROR in ./node_modules/@avaya/neo-react/dist/avaya-neo-react.mjs 16941:12-14 export 'useId' (imported as 'an') 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) , title: "Avaya React Menu component using React internal stuff and due to this build is getting failed" labels: [] assignees: [] body:

joe-s-avaya commented 1 year ago

Hi @ranjit-redekar, what version of React are you using? That version of neo-react requires React v18, and from the error message that you're getting, my best guess is that you're using React v17.

joe-s-avaya commented 1 year ago

issue is over two weeks old, closing as stale