'Getting the error "Next.js unmet peer dependency error " when installing next.js app

So , when I'm trying to create a new Next.js app using npx create-next-app@latest todo-app command , I get this following error while It's being installed :

"eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > [email protected]" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".

After the installation , when I try to run the app using yarn dev (I also tried npm run dev but to no avail) , It won't work and I get this following error :

./node_modules/next/dist/client/dev/amp-dev.js
Module not found: Can't resolve 'F:\{folder names}\node_modules\next\dist\compiled\regenerator-runtime\runtime.js' in 'F:\{folder names}\node_modules\next\dist\client\dev'
[DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API

I also get lot more errors after this error , so I'm just going to add image of them.enter image description here



Solution 1:[1]

the answer to this problem is quite easy, installing as dependencies,

Ex: npm I typed. you handsome

ahuhauhuahua

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Renan