After upgrading my angular application from version 5 to version 9, I encountered an issue while trying to deploy my code on the server.
ERROR in The Angular Compiler requires TypeScript >=3.6.4 and <3.9.0 but 3.9.10 was found instead.
Even though my package.json file shows that my typescript version is 3.8.3, this error persists.
I am puzzled as to why this discrepancy is occurring and have provided a snippet of my package.json file and the error below:
Error screenshot
https://i.sstatic.net/fonRL.png
Package.json snippet
https://i.sstatic.net/ERowD.png
I would greatly appreciate any assistance in resolving this issue.
Note: Despite researching solutions on Stack Overflow, none seem to align with my situation given that my package.json file contains the compatible typescript version.