Next.js Discord

Discord Forum

Weird error out of nowhere

Answered
Varun posted this in #help-forum
Open in Discord
PS C:\Users\varun\OneDrive\Desktop\Coding\tunedin-landing> npm run dev

open-pro-next@0.1.0 dev
next dev

[Error: EINVAL: invalid argument, readlink 'C:\Users\varun\OneDrive\Desktop\Coding\tunedin-landing.next\types\app(auth)\privacy_policy\page.ts'] {
errno: -4071,
code: 'EINVAL',
syscall: 'readlink',
path: 'C:\Users\varun\OneDrive\Desktop\Coding\tunedin-landing\.next\types\app\(auth)\privacy_policy\page.ts'
}

I am not sure as to what is causing this error when I try running any npm commands
Answered by Siberian Rubythroat
Try to delete .next folder - kill terminal - npm run dev again
If it don't help I recommend you to open issue on Next.js github
View full answer

2 Replies

Siberian Rubythroat
Try to delete .next folder - kill terminal - npm run dev again
If it don't help I recommend you to open issue on Next.js github
Answer
thanks that worked!