Next.js Discord

Discord Forum

Weird error after npm commands

Answered
Varun posted this in #help-forum
Open in Discord
tunedin-landing-tailwind@0.1.0 dev
next dev

â–² Next.js 14.1.0
- Local: http://localhost:3000

[Error: EINVAL: invalid argument, readlink 'C:\Users\varun\OneDrive\Desktop\landing-page\tunedin-landing-tailwind.next\static\chunks\fallback\amp.js'] {
errno: -4071,
code: 'EINVAL',
syscall: 'readlink',
path: 'C:\Users\varun\OneDrive\Desktop\landing-page\tunedin-landing-tailwind\.next\static\chunks\fallback\amp.js'
}

it was working this morning. I'm not sure what could have changed
Answered by Clown
Simply delete .next folder and try running again
View full answer

2 Replies

Simply delete .next folder and try running again
Answer
Thanks