julianhille / MuhammaraJS

Muhammara a node module with c/cpp bindings to modify PDF with js for node or electron (based/replacement on/of galkhana/hummusjs)
Other
205 stars 41 forks source link

No problem with installation, error when running, please help me see what I need to do。 #353

Closed Tithy closed 7 months ago

Tithy commented 8 months ago

image image Electron version 19.1.19, nodejs version 16.14.2, win11。

julianhille commented 7 months ago

This looks like you are trying to use muhammara in the frontend (so in a browser). By loading it through a js tag, a require inside of an electron window should work, depending on your setup, electron version and type of loading the file. Loading it through some kind of require js by download and evaluate or js tags thhis wont work as there is no node which would be able to load a binary / native module.

Tithy commented 7 months ago

Thank you for your suggestion. I have rebuilt the entire project and it is now functioning properly. It is possible that some library versions were too low, and it seems that the canvas library is not compatible with my project.