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 ...
2 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
fixed, a 'rm -rf node_modules bun.lock && bun install' does the job