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

Open
manish-pali opened this issue May 11, 2024 · 7 comments
Open

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 pnpm@8.6.10 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.

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

4 participants