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
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...