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

Error: ENOENT: no such file or directory, open '/pages/index.tsx' #3

Open
HendrickSamuel opened this issue May 21, 2022 · 0 comments
Open

Comments

@HendrickSamuel
Copy link

I could not make it generate the route manifest.

  • os: MacOS Monterey
  • package manager: npm

Steps followed

  1. npx create-next-app@latest
  2. npm install delir --save-dev
  3. add "generates-routes": "delir ./routes.ts" to package.json
  4. run npm run generates-routes
  5. error occurs

Error details

Start delir v0.0.1 - Generates a Route Manifest for you. It allows you to refer to a page by name instead of location
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

[Error: ENOENT: no such file or directory, open '/pages/index.tsx'] {
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/pages/index.tsx'
}

What I tried:

  • changing workspace entry
  • using sudo
  • installing delir globaly

What could cause this issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant