Cloud Function fails after upgrading to node-appwrite 12.1.0-rc.4 due to typescript
- 0
- Functions
- Cloud

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/usr/local/server/src/function/node_modules/node-appwrite/dist/client' imported from /usr/local/server/src/function/node_modules/node-appwrite/dist/index.mjs
It worked fine when node-appwrite version was 9.0.0. This seems to be some typescript misconfiguration. I tried various combinations but none of them worked. Can someone please help identify what might be the issue? Thanks in advance.
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"moduleDetection": "force",
"isolatedModules": true,
"rootDir": "src",
"resolveJsonModule": true,
"sourceMap": true,
"allowJs": true,
"outDir": "dist",
"noImplicitReturns": true,
"noUnusedLocals": true,
"experimentalDecorators": true,
"strictPropertyInitialization": false,
"forceConsistentCasingInFileNames": true,
"strict": true,
"noImplicitAny": true,
"skipLibCheck": true,
"esModuleInterop": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"dist"
]
}
Recommended threads
- 400Invalid query: Attribute not found in...
Hello When I open the database I am not able to reach anything just seeing an error message. Can you help me please?
- Asymetric Authentication for Appwrite si...
Is there any way to do asymmetric authentication of Appwrite users on the server side without making a network call? This can result in a huge reduction in late...
- Registering new flutter app
Hi, ive got an already build flutter app which works in development with appwrite. but with the built version i get an error that the client is not registered. ...
