Typescript and reactscripts compatibilit

I added some typecript code in my code base and got this error on build
2 Replies
Percy
Percy9mo ago
Project ID: N/A
Shaheerchry
Shaheerchry9mo ago
#10 3.669 npm ERR! ERESOLVE could not resolve #10 3.669 npm ERR! #10 3.669 npm ERR! While resolving: react-scripts@5.0.1 #10 3.669 npm ERR! Found: typescript@5.2.2 #10 3.669 npm ERR! node_modules/typescript #10 3.669 npm ERR! typescript@"^5.2.2" from the root project #10 3.669 npm ERR! peer typescript@">= 2.7" from fork-ts-checker-webpack-plugin@6.5.3 #10 3.669 npm ERR! node_modules/fork-ts-checker-webpack-plugin #10 3.669 npm ERR! fork-ts-checker-webpack-plugin@"^6.5.0" from react-dev-utils@12.0.1 #10 3.669 npm ERR! node_modules/react-dev-utils #10 3.669 npm ERR! react-dev-utils@"^12.0.1" from react-scripts@5.0.1 #10 3.669 npm ERR! node_modules/react-scripts #10 3.669 npm ERR! react-scripts@"5.0.1" from the root project #10 3.669 npm ERR! 1 more (tsutils) #10 3.669 npm ERR! #10 3.669 npm ERR! Could not resolve dependency: #10 3.670 npm ERR! peerOptional typescript@"^3.2.1 ^4" from react-scripts@5.0.1 #10 3.670 npm ERR! node_modules/react-scripts #10 3.670 npm ERR! react-scripts@"5.0.1" from the root project #10 3.670 npm ERR! #10 3.670 npm ERR! Conflicting peer dependency: typescript@4.9.5 #10 3.670 npm ERR! node_modules/typescript #10 3.670 npm ERR! peerOptional typescript@"^3.2.1 ^4" from react-scripts@5.0.1 #10 3.670 npm ERR! node_modules/react-scripts #10 3.670 npm ERR! react-scripts@"5.0.1" from the root project