elazdi_al
CCConvex Community
•Created by elazdi_al on 4/24/2025 in #support-community
convex dev command not pushing functions
Hello,I'm running the last version of convex,in a Next.js 15 project.I'm using an app directory, and convex folder is at the most external level of the project. Here's the file structure of the convex folder:
convex
├── _generated/
├── betterAuth.ts
├── mail
│ ├── attachments.ts
│ ├── folders.ts
│ ├── messages.ts
│ └── sync.ts
├── microsoftGraph
│ ├── auth.ts
│ ├── client.ts
│ ├── mail
│ │ ├── attachments.ts
│ │ ├── folders.ts
│ │ ├── messages.ts
│ │ ├── mutations.ts
│ │ ├── queries.ts
│ │ └── send.ts
│ ├── types.ts
│ └── utils.ts
├── schema.ts
└── tsconfig.json
convex/tsconfig.json :{
/* This TypeScript project config describes the environment that
* Convex functions run in and is used to typecheck them.
* You can modify it, but some settings required to use Convex.
/
"compilerOptions": {
/ These settings are not required by Convex and can be modified. /
"allowJs": true,
"strict": true,
"moduleResolution": "Bundler",
"jsx": "react-jsx",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"paths": {
"~/": ["../"],
"@/": ["../"],
"@cvx/": ["./"],
"types/": ["../types/"],
"../../types/": ["../types/"],
"constants/": ["../constants/"]
},
/ These compiler options are required by Convex /
"target": "ESNext",
"lib": ["ES2021", "dom"],
"forceConsistentCasingInFileNames": true,
"module": "ESNext",
"isolatedModules": true,
"noEmit": true
},
"include": ["./**/"],
"exclude": [
"../types/",
"../constants/"
]
}
This allows me to import types/constants defined in the main project directory. Linter errors work but using 'bunx convex dev' doesn't push the defined functions, I'd love some help.
bunx convex dev
✔ Provisioned a dev deployment and saved its name as ... to ...
Write your Convex functions in convex/
Give us feedback at ... or support@convex.dev
View the Convex dashboard at ...
3 replies