Home
Support Forums

Attempting to use skia-canvas

Hi, I’m attempting to use skia-canvas to do some image building in a JS background function and skia-canvas is throwing an error about not being able to find fontconfig: “libfontconfig.so.1: cannot open shared object file: No such file or directory”.

I’ve tried installing fontconfig before building, apt-get didn’t work, but brew did. I also tried adding both skia-canvas and libfontconfig.so.1 to the list of external_node_modules in netlify.toml. but that did not solve my problem.

Does anybody have any ideas around what it could be? I know that there are some solutions with other canvas packages so I may have to switch, but would rather not if possible.

Hey there, @tylervipond :wave:

Thanks so much for reaching out, and welcome to the Netlify Forums :netliconfetti: Are you still encountering this issue? If you are, can you please share your Netlify site name as well as your repo, if public? If you are not longer having this issue, please let us know what solution you implemented. Thanks :slight_smile: