maros.studenic
maros.studenic
CCConvex Community
Created by maros.studenic on 5/12/2025 in #support-community
sharp version v34.1 error but sharp v33.5 working
Hey, I just encountered error when trying shapr on convex. I had this error when i had sharp with version v34.1 in my package.json, but when i changed it to 33.5 it disapperaed. So there need to be some update for glib in node environment probably. ( missing GLIBCXX_3.4.26) ✖ Error fetching POST https://charming-penguin-16.convex.cloud/api/deploy2/start_push 400 Bad Request: InvalidModules: Hit an error while pushing: Loading the pushed modules encountered the following error: Uncaught Failed to analyze r2_helpers.js: Could not load the "sharp" module using the linux-arm64 runtime ERR_DLOPEN_FAILED: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /var/task/source/6aaee8a9-beac-406d-aa17-ce183163d2f9/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node) Possible solutions: - Ensure optional dependencies can be installed: npm install --include=optional sharp - Ensure your package manager supports multi-platform installation: See https://sharp.pixelplumbing.com/install#cross-platform - Add platform-specific dependencies: npm install --os=linux --cpu=arm64 sharp - Consult the installation documentation: See https://sharp.pixelplumbing.com/install
3 replies
CCConvex Community
Created by maros.studenic on 10/14/2024 in #support-community
deploy turbo project - nextjs, react native, convex on vercel
how to deploy this repo to vercel ? https://github.com/get-convex/turbo-expo-nextjs-clerk-convex-monorepo eg. how to structure builld command ? currently I have this in turbo.json
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local",
".env"
],
"ui": "tui",
"tasks": {
"build": {
"cache": false,
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"^build"
]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"clean": {
"cache": false
},
"deploy": {
"cache": false,
"dependsOn": [
"^build"
]
}
}
}
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": [
"**/.env.*local",
".env"
],
"ui": "tui",
"tasks": {
"build": {
"cache": false,
"outputs": [
"dist/**",
".next/**",
"!.next/cache/**"
],
"dependsOn": [
"^build"
]
},
"dev": {
"cache": false,
"persistent": true
},
"lint": {},
"clean": {
"cache": false
},
"deploy": {
"cache": false,
"dependsOn": [
"^build"
]
}
}
}
and this in packages/backend/package.json
{
"name": "@packages/backend",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "convex dev",
"setup": "convex dev --until-success",
"deploy": "npx convex deploy"
},
"author": "",
"license": "ISC",
"dependencies": {
"@clerk/clerk-sdk-node": "^5.0.15",
"convex": "^1.13.0",
"stripe": "^16.2.0",
"svix": "^1.25.0"
}
}
{
"name": "@packages/backend",
"version": "1.0.0",
"description": "",
"scripts": {
"dev": "convex dev",
"setup": "convex dev --until-success",
"deploy": "npx convex deploy"
},
"author": "",
"license": "ISC",
"dependencies": {
"@clerk/clerk-sdk-node": "^5.0.15",
"convex": "^1.13.0",
"stripe": "^16.2.0",
"svix": "^1.25.0"
}
}
But I dont know what to put in vercel command for build
32 replies
CCConvex Community
Created by maros.studenic on 6/26/2024 in #support-community
react native outdated quickstart - remove react-native-dotenv
This is not issue but documentation update recommendation. I was started project with react native quick setup, but with expo version 0.51, where react-native-dotenv is not supported it started with error. It only started expo initial screen. Not the acctual app. Problem was solved with removing react-native-dotenv, using basic process.env.ENV_NAME variables instead. And also I had to run npx expo start -c Happy hacking
3 replies