Peter-Win / fe-gui

0 stars 0 forks source link

React17 + ReactTestingLibrary #43

Closed Peter-Win closed 1 year ago

Peter-Win commented 2 years ago

Source configuration: NPM, JavaScript, SWC v1.2.215, React v17.0.2

npm i @testing-library/react @testing-library/jest-dom -D Can't execute "npm i @testing-library/react @testing-library/jest-dom -D": Command failed: npm i @testing-library/react @testing-library/jest-dom -D npm WARN config init.author.name Use --init-author-name instead. npm WARN config init.author.email Use --init-author-email instead. npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: fe-gui-test@1.0.0 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^18.0.0" from @testing-library/react@13.3.0 npm ERR! node_modules/@testing-library/react npm ERR! dev @testing-library/react@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Peter-Win commented 1 year ago

Support for React 17 has been discontinued.