
{
"name": "starter-template",
"version": "1.0.0",
"description": "",
"main": "dist/main.js",
"type": "module",
"scripts": {
"format": "prettier --write .",
"build": "tsc"
},
"dependencies": {
"livekit-server-sdk": "^1.2.7",
"node-appwrite": "^9.0.0",
"typescript": "^5.1.6"
},
"devDependencies": {
"@types/node": "^20.4.7",
"prettier": "^3.0.0"
}
}
{
"$id": "657579ca608ed1b0f105",
"name": "video",
"runtime": "node-18.0",
"execute": [],
"events": [],
"schedule": "",
"timeout": 15,
"enabled": true,
"logging": true,
"entrypoint": "dist/main.js",
"commands": "npm install && npm run build",
"ignore": ["node_modules", ".npm", "dist"],
"path": "functions/video"
}

How did you deploy?

manual

How exactly?

appwrite deploy function

And what's your folder structure?




Weird... Appwrite can't see the package.json file...

Does Appwrite have the right version of the code?

I just follow this



npm run build*

I think so? becauase I already did migrated typescript into javascript and it succesfully deployed


and this is also my reference

From the function deployment, you can see the git commit. Does that look right?

Bun might be the option to use typescript but it some issue on BUn v1
Recommended threads
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
- Hola equipo de soporte,
Hola equipo de soporte, Estoy desarrollando una Function en Appwrite Cloud con Node.js 22 y el siguiente package.json: { "name": "upload-whitelist", "type"...
- Function running in cloud but not locall...
Hi everyone, I have an appwrite function which is on python3.12 runtime. I have a library (hnswlib) which builds wheels during installation. This works on appwr...
