Although I have installed all the necessary dependencies I still get an error when I run npm test
Cannot find module '@testing-library/react'
Add "moduleResolution": "node"
in tsconfig.json file.
Alternative solution: npm install --save-dev @testing-library/react
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.