syedsharukhhussainy
syedsharukhhussainyβ€’13mo ago

If I run the command "npx convex dev" it won't run and there are no updates in the dashboard.

After writing all the code I ran this command "npx convex dev" as you can see the attached screenshot, it runs for 1 sec and suddenly stops and I am unable to see the changes in the dashboard also?
No description
12 Replies
FleetAdmiralJakob πŸ—• πŸ—— πŸ—™
Do you have any system information? OS, Processor etc.?
syedsharukhhussainy
syedsharukhhussainyOPβ€’13mo ago
OS: Windows 11 Processor: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx 2.10 GHz RAM: 16 GB
syedsharukhhussainy
syedsharukhhussainyOPβ€’13mo ago
On Client Side Iam getting this error
No description
Michal Srb
Michal Srbβ€’13mo ago
@syedsharukhhussainy can you try https://learn.microsoft.com/en-us/windows/wsl/install instead of MinGW?
Install WSL
Install Windows Subsystem for Linux with the command, wsl --install. Use a Bash terminal on your Windows machine run by your preferred Linux distribution - Ubuntu, Debian, SUSE, Kali, Fedora, Pengwin, Alpine, and more are available.
syedsharukhhussainy
syedsharukhhussainyOPβ€’13mo ago
Okay I will try ThanksπŸ‘ I am using windows 11 OS, Is this for windows?? @Michal Srb I think this is not the solution or may be I am not getting your point? Can you explain me if possible?
Michal Srb
Michal Srbβ€’13mo ago
The Convex CLI should work on Windows, and will definitely work on WSL. There could be an issue running it on MinGW. You could also try setting the CONVEX_TMPDIR env variable (as the warning message suggest, to some location on your D: disk)
Var&
Var&β€’11mo ago
I have this issue on my mac, using node v20.14.0 and NextJs 14.2.4 as soon as I create my first .ts file it starts behaving this way I was able to use the import command and insert test data and most importantly convex at version 1.12.2
ballingt
ballingtβ€’11mo ago
@Var& would you try this with --debug ?
Var&
Var&β€’11mo ago
it's an unknow flag, error: unknown option '--debug' npx convex dev --debug I tried -v which prints which files are skipped
Michal Srb
Michal Srbβ€’11mo ago
@Var& I think Tom mean npx convex dev -v, can you paste the full command output please? can you also share ls -al . and ls -al convex
Var&
Var&β€’11mo ago
npx convex dev -v
Codegen finished.
Skipping convex/README.md
Skipping convex/_generated/api.d.ts
Skipping convex/_generated/api.js
Skipping convex/_generated/dataModel.d.ts
Skipping convex/_generated/server.d.ts
Skipping convex/_generated/server.js
Preparing convex/requests.ts
Skipping convex/schema.ts
Skipping convex/tsconfig.json
npx convex dev -v
Codegen finished.
Skipping convex/README.md
Skipping convex/_generated/api.d.ts
Skipping convex/_generated/api.js
Skipping convex/_generated/dataModel.d.ts
Skipping convex/_generated/server.d.ts
Skipping convex/_generated/server.js
Preparing convex/requests.ts
Skipping convex/schema.ts
Skipping convex/tsconfig.json
ls -al .
total 2168
drwxr-xr-x 21 <myname> staff 672 Jun 21 19:46 .
drwxr-xr-x 11 <myname> staff 352 Jun 19 21:07 ..
-rw-r--r--@ 1 <myname> staff 6148 Jun 21 15:20 .DS_Store
-rw-r--r-- 1 <myname> staff 192 Jun 21 19:46 .env.local
-rw-r--r-- 1 <myname> staff 40 Jun 19 21:12 .eslintrc.json
drwxr-xr-x 15 <myname> staff 480 Jun 22 21:31 .git
-rw-r--r-- 1 <myname> staff 399 Jun 19 21:30 .gitignore
drwxr-xr-x 11 <myname> staff 352 Jun 21 21:19 .next
-rwxr-xr-x 1 <myname> staff 792403 Jun 21 20:29 .pnp.cjs
-rw-r--r-- 1 <myname> staff 71512 Jun 19 21:24 .pnp.loader.mjs
drwxr-xr-x 4 <myname> staff 128 Jun 20 01:58 .vscode
drwxr-xr-x 5 <myname> staff 160 Jun 19 21:26 .yarn
-rw-r--r-- 1 <myname> staff 1263 Jun 20 01:58 README.md
drwxr-xr-x 7 <myname> staff 224 Jun 21 20:26 convex
-rw-r--r-- 1 <myname> staff 201 Jun 19 21:12 next-env.d.ts
-rw-r--r-- 1 <myname> staff 92 Jun 19 21:12 next.config.mjs
-rw-r--r-- 1 <myname> staff 706 Jun 21 20:29 package.json
drwxr-xr-x 3 <myname> staff 96 Jun 20 01:58 public
drwxr-xr-x 5 <myname> staff 160 Jun 21 01:27 src
-rw-r--r-- 1 <myname> staff 613 Jun 21 20:04 tsconfig.json
-rw-r--r-- 1 <myname> staff 198737 Jun 21 20:29 yarn.lock
ls -al .
total 2168
drwxr-xr-x 21 <myname> staff 672 Jun 21 19:46 .
drwxr-xr-x 11 <myname> staff 352 Jun 19 21:07 ..
-rw-r--r--@ 1 <myname> staff 6148 Jun 21 15:20 .DS_Store
-rw-r--r-- 1 <myname> staff 192 Jun 21 19:46 .env.local
-rw-r--r-- 1 <myname> staff 40 Jun 19 21:12 .eslintrc.json
drwxr-xr-x 15 <myname> staff 480 Jun 22 21:31 .git
-rw-r--r-- 1 <myname> staff 399 Jun 19 21:30 .gitignore
drwxr-xr-x 11 <myname> staff 352 Jun 21 21:19 .next
-rwxr-xr-x 1 <myname> staff 792403 Jun 21 20:29 .pnp.cjs
-rw-r--r-- 1 <myname> staff 71512 Jun 19 21:24 .pnp.loader.mjs
drwxr-xr-x 4 <myname> staff 128 Jun 20 01:58 .vscode
drwxr-xr-x 5 <myname> staff 160 Jun 19 21:26 .yarn
-rw-r--r-- 1 <myname> staff 1263 Jun 20 01:58 README.md
drwxr-xr-x 7 <myname> staff 224 Jun 21 20:26 convex
-rw-r--r-- 1 <myname> staff 201 Jun 19 21:12 next-env.d.ts
-rw-r--r-- 1 <myname> staff 92 Jun 19 21:12 next.config.mjs
-rw-r--r-- 1 <myname> staff 706 Jun 21 20:29 package.json
drwxr-xr-x 3 <myname> staff 96 Jun 20 01:58 public
drwxr-xr-x 5 <myname> staff 160 Jun 21 01:27 src
-rw-r--r-- 1 <myname> staff 613 Jun 21 20:04 tsconfig.json
-rw-r--r-- 1 <myname> staff 198737 Jun 21 20:29 yarn.lock
ls -al convex
total 32
drwxr-xr-x 7 <myname> staff 224 Jun 21 20:26 .
drwxr-xr-x 21 <myname> staff 672 Jun 21 19:46 ..
-rw-r--r-- 1 <myname> staff 2502 Jun 21 19:46 README.md
drwxr-xr-x 7 <myname> staff 224 Jun 21 20:26 _generated
-rw-r--r-- 1 <myname> staff 342 Jun 21 20:25 requests.ts
-rw-r--r-- 1 <myname> staff 212 Jun 21 20:25 schema.ts
-rw-r--r-- 1 <myname> staff 756 Jun 21 19:46 tsconfig.json
ls -al convex
total 32
drwxr-xr-x 7 <myname> staff 224 Jun 21 20:26 .
drwxr-xr-x 21 <myname> staff 672 Jun 21 19:46 ..
-rw-r--r-- 1 <myname> staff 2502 Jun 21 19:46 README.md
drwxr-xr-x 7 <myname> staff 224 Jun 21 20:26 _generated
-rw-r--r-- 1 <myname> staff 342 Jun 21 20:25 requests.ts
-rw-r--r-- 1 <myname> staff 212 Jun 21 20:25 schema.ts
-rw-r--r-- 1 <myname> staff 756 Jun 21 19:46 tsconfig.json
schema.ts
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";

export default defineSchema({
requests: defineTable({
completed: v.boolean(),
email: v.string(),
}),
});
schema.ts
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";

export default defineSchema({
requests: defineTable({
completed: v.boolean(),
email: v.string(),
}),
});
requests.ts
import { v } from "convex/values";
import { query } from "./_generated/server";

export const queryRequest = query({
args: { email: v.string() },
handler: async (ctx, args) => {
const request = await ctx.db
.query("requests")
.filter((q) => q.eq(q.field("email"), args.email))
.first();
return request;
},
});
requests.ts
import { v } from "convex/values";
import { query } from "./_generated/server";

export const queryRequest = query({
args: { email: v.string() },
handler: async (ctx, args) => {
const request = await ctx.db
.query("requests")
.filter((q) => q.eq(q.field("email"), args.email))
.first();
return request;
},
});
node v20.14.0 NextJs 14.2.4 yarn 4.3.0 convex 1.12.2 @Michal Srb and @ballingt you can ignore this thread, I don't knwo what happened, I really dont know, after pushing my branch and merging it with main (yes broken branch), it starts to work. nothing is changed in code, I just ran npx convex dev on main branch and it started to compile. I have nothing to add πŸ˜„
Michal Srb
Michal Srbβ€’11mo ago
It can be a network blip / bad connection.

Did you find this page helpful?