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

Local development setup error on Windows - can't start dev server #886

Closed
manish-pali opened this issue May 11, 2024 · 8 comments
Closed

Comments

@manish-pali
Copy link

Hi there ,

I'm trying to set up Dub in local dev env on Windows 11

When i run pnpm dev getting this error and ERROR run failed: command exited (1)

error

I found react-email was the problem so removed "email dev --port 3333" from dev script in apps/web

Server started but then I get Build Error

next js error

Changing postcss.config.js extention to postcss.config.cjs helps

It would be much appreciated if someone could help me with email cli problem

Copy link

linear bot commented May 11, 2024

@NirbhaySirsikar
Copy link

I'm using Windows 10 and [email protected] and facing the same issue. Hope someone fixes this soon.

@shreyash010
Copy link

You can try setting up on wsl worked for me.

@NirbhaySirsikar
Copy link

@shreyash010 I tried setting up docker and the project in wsl but it takes forever to load localhost:8888.
Can you please tell me what sequence of steps you took to setup the project successfully.

@NirbhaySirsikar
Copy link

Hi, @manish-pali, I fixed this issue in my system. It was a very silly mistake from my end though.

I created .env file in dub/ directory instead of dub/apps/web directory.
There's also a .env.example file for reference.
Once .env file was moved, all of my error were fixed.

If this works for you too you can close the issue.

@manish-pali
Copy link
Author

Hello, @NirbhaySirsikar,
good to hear that it worked for you but I already placed my .env file in the right place
dub

@NirbhaySirsikar
Copy link

@manish-pali , Additional to that, closing instances of any localhost:3334 and localhost:8888 did work for me.
Also, let the script run without interfering with the system.

It works 80% of the time. If it doesn't I restart my terminal because sometimes files are resource locked.

@satwant007
Copy link

satwant007 commented Jun 17, 2024

I'd suggest building the packages before starting the dev server. Steps that worked for me:

  1. cd dub/packages/utils
    pnpm install
    pnpm build
  2. cd dub/packages/ui
    pnpm install
    pnpm build
  3. cd dub/apps/web
    pnpm install
    pnpm build
    npm run dev

Given the app/web is not declaring the utils and ui package as transpile package and is picking up the exports from dist folder (package.json of repective packages), building the packages is required. Atleast thats what my understanding is.

I am able to run the server on loca

Screenshot 2024-06-17 at 3 32 37 PM

@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

5 participants