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

Unable to start the project in local: Couldn't find any pages or app directory. #1010

Closed
shashankdaima opened this issue Jun 23, 2024 · 3 comments

Comments

@shashankdaima
Copy link

I am trying to follow through your https://dub.co/docs/local-development.
But i am getting this in last step(i.e. when i start the project with pnpm dev in apps/web in windows machine).
image

PS C:\Users\Lenovo\dev\dub\apps\web> pnpm run  dev

> web@ dev C:\Users\Lenovo\dev\dub\apps\web
> concurrently --kill-others "prisma generate && next dev --turbo --port 8888" "prisma generate && prisma studio --browser none" "email dev --port 3333"

(node:13580) [DEP0060] DeprecationWarning: The `util._extend` API is deprecated. Please use Object.assign() instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
[2]     React Email 2.0.0
[2] - Getting react-email preview server ready...
[2] 
[2]     Running preview at:          http://localhost:3333
[2] 
[0] Environment variables loaded from .env
[0] Prisma schema loaded from prisma\schema.prisma
[1] Environment variables loaded from .env
[1] Prisma schema loaded from prisma\schema.prisma
[2] Error: > Couldn't find any `pages` or `app` directory. Please create one under the project root
[2]     at findPagesDir (C:\Users\Lenovo\dev\dub\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected][email protected]\node_modules\next\dist\lib\find-pages-dir.js:42:15)
[2]     at initialize (C:\Users\Lenovo\dev\dub\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected][email protected]\node_modules\next\dist\server\lib\router-server.js:71:69)
[2]     at async NextCustomServer.prepare (C:\Users\Lenovo\dev\dub\node_modules\.pnpm\[email protected]_@[email protected]_@[email protected][email protected][email protected]\node_modules\next\dist\server\next.js:240:28)
[2]
[2] shutting down dev server
[2] email dev --port 3333 exited with code 1
--> Sending SIGTERM to other processes..
[0] prisma generate && next dev --turbo --port 8888 exited with code 1
--> Sending SIGTERM to other processes..
[1] prisma generate && prisma studio --browser none exited with code 1
 ELIFECYCLE  Command failed with exit code 1.
@shashankdaima
Copy link
Author

[Update]: this issue was not solvable in windows. I have to use wsl to run this project.

@devkiran
Copy link
Collaborator

devkiran commented Jul 3, 2024

Thanks for the update. Closing this issue now.

@devkiran devkiran closed this as completed Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants