Has anyone tried rendering images using @napi-rs/canvas in Appwrite Functions? I've got a Bun runtime setup for this but I keep getting the same "cannot find native binding" error even though the native binary packages are definitely installed.
TypeScript
Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
at <anonymous> (/usr/local/server/src/function/node_modules/@napi-rs/canvas/js-binding.js:428:15)
at anonymous (native)
at <anonymous> (/usr/local/server/src/function/node_modules/@napi-rs/canvas/index.js:21:3)
at <anonymous> (:11:43)
at processTicksAndRejections (:12:39)
TL;DR
Developers are encountering a "cannot find native binding" error when using @napi-rs/canvas in Appwrite Functions. The solution suggests removing package-lock.json and the node_modules directory, then trying `npm i` again.Recommended threads
- Function running for more than 2 hours i...
This is my projectID: 669fe01b003800dd0503 Cloud functionID is 696ea05400147eb8eb3b I hope this doesn't count against my GB-hours?
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...
- SELF HOSTING ISSUE, DATA NOT MIGRATING T...
Hey, devs, I recently tried to migrate my cloud instance to a self hosted version but my data is not transferred fully only the table structure is transferred ...