Local development setup error on Windows - can't start dev server
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)
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
Changing postcss.config.js extention to postcss.config.cjs helps
It would be much appreciated if someone could help me with email cli problem
I'm using Windows 10 and [email protected] and facing the same issue. Hope someone fixes this soon.
You can try setting up on wsl worked for me.
@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.
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.
Hello, @NirbhaySirsikar,
good to hear that it worked for you but I already placed my .env file in the right place
@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.
I'd suggest building the packages before starting the dev server. Steps that worked for me:
- cd dub/packages/utils
pnpm install pnpm build - cd dub/packages/ui pnpm install pnpm build
- 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