Getting the same after trying the different deployment method

Hi @Somesh-Dahatonde,

Thanks for reaching out and welcome to Netlify’s Support Forums!

I’m seeing the error here:

6:21:15 AM: > Build error occurred
6:21:15 AM: Error: > Couldn"t find any `pages` or `app` directory. Please create one under the project root
    at findPagesDir (/opt/build/repo/node_modules/next/dist/lib/find-pages-dir.js:42:15)

I found this Forum post with a similar issue that may help:

You’ll need to check the GitHub repo to see if the pages or app directory are there.

@Melvin Thank you for replying !

but in my repo, I already have the pages dir.
image

@Melvin Thank you for your response. The reason for the error is the naming. It need small-case pages, and I’m trying with Pages.:sweat_smile:

1 Like