First, create a TypeScript project with create-next-app using the --ts or --typescript flag like so: yarn create next-app --typescript or npx create-next-app --ts Add required libraries: yarn add -D jest @types/jest react-test-renderer @types/react-t...

Markdown supported · ⌘↵ to post
Murat
Frontend Developer
Maybe you know how to fix TS error
I have the same config as yours and I have this error(
"jest": "^27.4.7", "jest-environment-jsdom": "^27.4.6", "typescript": "4.4.3", "@types/jest": "^27.4.0", "next": "^12.0.8",Thanks in advance!