charoitel / lambda-layer-canvas-nodejs

Cairo backed Mozilla Web Canvas API implementation layer for AWS Lambda
https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs
MIT License
90 stars 24 forks source link

Missing fonts in chart.js in the layer for Node 20 #27

Open SOVALINUX opened 3 weeks ago

SOVALINUX commented 3 weeks ago

Hi
First of all thank you for maintaining this repo and publishing as an AWS layer!
Sorry for a bit incomplete description, but decided to raise an issue rather than keep silence :)

Context / Environment:

Issue:
After upgrade from Node.JS 18 to 20 using new Layer version fonts stopped to display properly (image below is shown)
What I see from the logs (no stacktrace unfortunately): Fontconfig error: Cannot load default config file
Unfortunately I don't fully understand how/where to look deeper and is it a issue of this package or some misconfiguration on my end

image

charoitel commented 6 days ago

Hi @SOVALINUX,

Thanks for reporting this issue. Would you mind to share sample code and let me take some time to investigate? Thank you.