Next.js Discord

Discord Forum

validator.ts file and rerendering a lot when add/remove route while in dev

Answered
aryomuzakki posted this in #help-forum
Open in Discord
hello, while next dev is running, and then i create new api route or app page, my current opened page are compiling and rendering multiple times. and then sometimes vs code will open up .next/dev/types/validator.ts and have unsaved changes.
this also happen when deleting an api route. it reach over a hundred of request.

why is this happen?
Answered by B33fb0n3
this is a bug in next16. It happens to all of us. For now ignore it and upgrade in the future to the newest patches, so that its fixed for you as well. Currently, there is no fix
View full answer

4 Replies