Open B-R-Bender opened 1 month ago
This library uses another library called 'freetype2' to do some text rendering, and as you have discovered, webpack doesn't understand and copy the precompiled component of this when bundling.
You will need to make sure that after your webpack build, you make the file it is looking for at /home/www/dv2/services/services-test/prebuilds/freetype2-linux-x64/node-napi-v7.node
available to it. Inside of your node_modules, will be a package @julusian/freetype2
which contains the prebuilds/freetype2-linux-x64/node-napi-v7.node
file that you need to distribute.
Thank you for a quick answer! I'll try and let you know if something will go wrong.
About me
Hello! I'm just a developer :)
Issue
I'm trying to build a simple controller for my ATEM. On a dev computer it looks like it works, but when I build it and deployed to a server. When I run my script it can see this in the output:
to me it looks like there is something with freetype2 on a server but maybe I'm missing something, so can you please share your thoughts.
Thanks in advance