Egorkolds
Egorkolds2w ago

Bun: `convex dev` doesn't update dev deployment

bun convex dev
✔ Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/deafening-husky-833
bun convex dev
✔ Provisioned a dev deployment and saved its name as CONVEX_DEPLOYMENT to .env.local

Write your Convex functions in convex/
Give us feedback at https://convex.dev/community or support@convex.dev
View the Convex dashboard at https://dashboard.convex.dev/d/deafening-husky-833
When I visit the dashboard, it still has the old functions and schema. The client doesn't work for new functions. api.ts is updated correctly locally with new functions.
No description
No description
2 Replies
Egorkolds
EgorkoldsOP2w ago
Even if I create a new convex project using bun convex dev --configure it doesn't upload any functions. I found out that it only happens when a project that has convex is a part of a bun workspace. package.json
{
"name": "root",
"private": true,
"workspaces": [
"expo-project",
"convex-project"
],
"devDependencies": {
"convex-project": "workspace:*",
"expo-project": "workspace:*"
}
}
{
"name": "root",
"private": true,
"workspaces": [
"expo-project",
"convex-project"
],
"devDependencies": {
"convex-project": "workspace:*",
"expo-project": "workspace:*"
}
}
package.json
{
"name": "convex-project",
"version": "1.0.0",
"main": "index.ts",
"license": "MIT",
"dependencies": {
"@auth/core": "0.37.0",
"@convex-dev/auth": "^0.0.88",
"convex": "^1.26.2"
}
}
{
"name": "convex-project",
"version": "1.0.0",
"main": "index.ts",
"license": "MIT",
"dependencies": {
"@auth/core": "0.37.0",
"@convex-dev/auth": "^0.0.88",
"convex": "^1.26.2"
}
}
Clever Tagline
I don't use Bun, but I updated the post title to add that. Here's hoping that other Bun users can help with a solution.

Did you find this page helpful?