helia-examples icon indicating copy to clipboard operation
helia-examples copied to clipboard

Error: ENOENT: no such file or directory, open '/Users/me/helia-examples/examples/helia-nextjs/.next/BUILD_ID'

Open kopeboy opened this issue 2 years ago • 2 comments

Steps to reproduce on macOS with node v20.5.0:

~/ gh repo clone ipfs-examples/helia-examples cd helia-examples/examples/helia-nextjs npm install npm start =>

> [email protected] start
> next start

[Error: ENOENT: no such file or directory, open '/Users/kopeboy/helia-examples/examples/helia-nextjs/.next/BUILD_ID'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/kopeboy/helia-examples/examples/helia-nextjs/.next/BUILD_ID'
}
npm ERR! Lifecycle script `start` failed with error:
npm ERR! Error: command failed
npm ERR!   in workspace: [email protected]
npm ERR!   at location: /Users/kopeboy/helia-examples/examples/helia-nextjs

kopeboy avatar Oct 27 '23 07:10 kopeboy

Running npm run build before npm start would work, but how to use the development mode? Shouldn't we update the README mentioning npm run dev?

kopeboy avatar Oct 27 '23 08:10 kopeboy

Hello there, In helia-examples/examples/helia-nextjs dir-- after running npm install, then npm run dev, the nextjs page is feasibly loaded without any err.

Kindly apprise if there are any other issues you may be encountering?

Nkovaturient avatar Jan 23 '25 14:01 Nkovaturient