Couldn’t find any `pages` or `app` directory. please create one under the project root

When you encounter the error message “couldn’t find any `pages` or `app` directory. please create one under the project root”, it means that the specified directory structure does not exist in your project.

To resolve this issue, you need to create a directory called “pages” and/or “app” under the project root directory.

Here’s an example of how to create these directories:

  1. Locate the root directory of your project. This is typically the main folder where your project files are stored.
  2. Create a new directory called “pages”. This can be done using the command line or through your file explorer. For example, if you are using the command line, you can navigate to the project root directory and run the command: mkdir pages
  3. If you also need an “app” directory, repeat the same steps to create it.

Once you have created the necessary directories, you should be able to proceed with your project without encountering the error message.

Read more

Leave a comment