Skip to content

Bug report: Can not start local development as described in README #12039

Closed
@HiroyukiNaito

Description

Describe the bug

Can not start local development environment as described in README file.

To reproduce

  1. $ yarn
  2. $ yarn start
  3. See error following
$ yarn start
yarn run v1.22.21
warning ../package.json: No license field
$ next start
- ready started server on 0.0.0.0:3000, url: http://localhost:3000
- warn You have enabled experimental feature (cpus) in next.config.js.
- warn Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.

Error: Could not find a production build in the '/home/hnaito/ethereum-org-website/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id
    at NextNodeServer.getBuildId (/home/hnaito/ethereum-org-website/node_modules/next/dist/server/next-server.js:349:23)
    at new Server (/home/hnaito/ethereum-org-website/node_modules/next/dist/server/base-server.js:152:29)
    at new NextNodeServer (/home/hnaito/ethereum-org-website/node_modules/next/dist/server/next-server.js:173:9)
    at NextServer.createServer (/home/hnaito/ethereum-org-website/node_modules/next/dist/server/next.js:179:24)
    at async /home/hnaito/ethereum-org-website/node_modules/next/dist/server/next.js:200:31
    at async NextServer.prepare (/home/hnaito/ethereum-org-website/node_modules/next/dist/server/next.js:161:24)
    at async Server.<anonymous> (/home/hnaito/ethereum-org-website/node_modules/next/dist/server/lib/render-server.js:128:17) {
  type: 'Error'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Expected behavior

  1. $ yarn
  2. $ yarn start
  3. Access to localhost:8000 and start development

Screenshots

No response

Desktop (please complete the following information)

No response

Smartphone (please complete the following information)

No response

Additional context

No response

Would you like to work on this issue?

  • Yes
  • No

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't workingneeds triage 📥This issue needs triaged before being worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions