We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This package is not compiling when added to a new CRA project using React 16.14.
Using Node LTS 18.16.0 & NPM 9.5.1 We get the following error
Attempted import error: 'useId' is not exported from 'react' (imported as 'useId').
npx create-react-app my-app
node_modules
package-lock.json
"@testing-library/jest-dom": "^5.15.0", "@testing-library/react": "^11.2.7", "@testing-library/user-event": "^12.8.3", "@yext/search-ui-react": "^1.1.0", "@yext/search-headless-react": "^2.1.0", "react": "^16.14.0", "react-dom": "^16.14.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4"
index.js
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; const root = document.getElementById('root'); ReactDOM.render( <App />, root );
npm run build
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This package is not compiling when added to a new CRA project using React 16.14.
Using Node LTS 18.16.0 & NPM 9.5.1 We get the following error
Attempted import error: 'useId' is not exported from 'react' (imported as 'useId').
npx create-react-app my-app
with Node v18.16.0node_modules
folder andpackage-lock.json
fileindex.js
to adapt back to React 16npm run build
The text was updated successfully, but these errors were encountered: