Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Couldn't find a pages directory. Please create one under the project root with Next.js 9.0.7 #8914

Closed
ccambournac opened this issue Sep 30, 2019 · 2 comments
Milestone

Comments

@ccambournac
Copy link

ccambournac commented Sep 30, 2019

Bug report

Describe the bug

With Next.js 9.0.7, after production build and deployment of directories and files below listed, the application is unable to start because of the following error : Couldn't find a pages directory. Please create one under the project root. It works well again after rolling back to Next.js 9.0.6.

Deployed files and folders:

  • .next
  • data
  • node_modules
  • static
  • next.config.js
  • package.json
  • pm2.config.js

To Reproduce

Build a minimal application with Next.js 9.0.7 and deploy it without /pages source folder.

Expected behavior

Built application should run without source files.

System information

  • OS: Debian 8.5
  • Version of Node.js: 10.16.3
  • Version of Next.js: 9.0.6/9.0.7
@timneutkens
Copy link
Member

Duplicate of #8893

@timneutkens timneutkens marked this as a duplicate of #8893 Sep 30, 2019
@Timer Timer added this to the 9.0.8 milestone Sep 30, 2019
@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants