profile
viewpoint

Ask questionsnode-canvas runtime error

Hi 👋 , I'm having a runtime error with my app that uses node-canvas@2.6.0. It doesn't uses it directly, but through the package text2png@2.3.0. Here is the error I got

2019-12-23T05:47:22.676Z	undefined	ERROR	Error: libuuid.so.1: cannot open shared object file: No such file or directory
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/var/task/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)

As far I know, right now AWS Lambda functions doesn't include the necessary libraries to work correctly with this package. This is describe in node-canvas#1448 and now I'm wondering if there is a work around in now to this issue.

vercel/vercel

Answer questions rauchg

@shawninder you're the MVP – you helped me figure this out

useful!

Related questions

Monorepo example - vercel hot 1
source:https://uonfu.com/
Github User Rank List