Next.js Discord

Discord Forum

Vercel build is failing when incrementally migrating pages to app router

Unanswered
English Angora posted this in #help-forum
Open in Discord
English AngoraOP
Vercel build is failing when incrementally migrating pages to app router. the problem is with the old components with hooks inside, i haven't marked those component with 'use client' directive, but i also don't use it in the App Router, more over i don't even use those components anywhere in the project, and the issue is started previously, before that these component where not a problem. Whats the problem here ?

The sample error is as below

Error: x NEXT_RSC_ERR_REACT_API: useState

Every client component that is not marked with 'use client' has this error.

0 Replies