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

./convex-local-backend on windows no longer working properly, convex tries to setup remote convex when running npm run dev #254

Open
Extassey opened this issue Sep 30, 2024 · 0 comments

Comments

@Extassey
Copy link

Extassey commented Sep 30, 2024

My convex local backend won't work anymore suddenly on windows with WSL. Was working fine until recently, I noticed that the interact button stopped working at first and so I reinstall WSL from scratch and went through the directions as they are shown in the GitHub readme.md,

The ./convex-local-backend server sets up and runs, but its like npm run dev doesnt notice it or something? I have tried changing .env but every time I run npm it changes it back to VITE_CONVEX_URL=http://127.0.0.1:3210

I was able to get ai-town working using the no clerk version as some have requested but this is using convex remote and gpt4 vs local convex and llama3, what changed? Does anyone know why I am getting this error?

`darklightheart@DESKTOP-NDV76IV:~/ai-town-new$ npm run dev

[email protected] predev
just convex dev --run init --until-success && convex dashboard

Removed the CONVEX_DEPLOYMENT environment variable from .env.local
Saved the given --url as VITE_CONVEX_URL to .env.local
✔ 17:11:02 Convex functions ready! (319.34ms)
✖ No CONVEX_DEPLOYMENT set, run npx convex dev to configure a Convex project
darklightheart@DESKTOP-NDV76IV:~/ai-town-new$`

obviously if I proceed to setup a remote convex it allows npm run dev to start the local:host but it shows nothing on the page but the ai-town background.

[EDIT]:

I got everything working again, had to revert to commit 08e3f419ba3f20ce46c63f8157a0ad223f0261d0 in git. It is strange, probably an easy fix for someone who knows how the heck convex and npm works. If I find out which setting to flip, Ill post a solution. I am guessing I am one of the only people doing this on PC vs linux or windows so other people don't seem to be having this problem.

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