Jump to content

Recommended Posts

Posted

Username: msbsurfi

Hello,

I have an NodeJs app that uses html-pdf (It is needed for specific purpose: It correctly handles the Bengali Unicode characters, others like pdfmake or pdfkit cannot) runs well in my local PC environment but in plesk it shows an error regarding html-pdf. I have checked other things (file permission, directory permission are ok) and they are ok. 

The error shows conf_def.c file missing a equal sign but I do not find the file in plesk directory search. Can you please address the issue why html-pdf not being installed correctly.

Best Regards,

MD Shifat Bin Siddique

Screenshot_20250408_120021_Chrome.jpg

Posted

Are you using the same version of node? Is there a config file for it that you can edit?

Krydos might be able to figure this out for you, but be aware that Google suggests that this library is discontinued because it used a dependency of its own (phantomjs) that is obsolete and no longer supported. Last release was in 2021...

Posted
27 minutes ago, wolstech said:

Are you using the same version of node?

Yes, I just tried with Node version 22 that I use in my PC. 

 

28 minutes ago, wolstech said:

Is there a config file for it that you can edit?

I am not sure. I have just deployed the app.js according the heliohost wiki.

 

29 minutes ago, wolstech said:

be aware that Google suggests that this library is discontinued

Yes I found it when looking for solutions in Google. But as it fits my requirements to generate pdfs in Bengali it will be great if can be implemented. This app has just a simple task to generate pdfs based on a template, so I and others can Generate pdfs just from mobile without using a word processor. 

Posted
9 hours ago, msbsurfi said:

I just tried with Node version 22 that I use in my PC. 

What operating system does your home PC use?

Posted

Response below from Krydos was lost due to a backup restoration:

Quote

Johnny runs Alma Linux 9, and PhantomJS hasn't been updated for 9 years. The errors you're seeing are because Johnny has too new of an OpenSSL that PhantomJS doesn't understand. I believe there are also some issues with other dependencies such as glibc too. I tested PhantomJS on Ubuntu 24, and Ubuntu 22. Neither works. You would have to build an Ubuntu 20 VPS to run PhantomJS, but that operating system reaches end of security support in 1 month, and active support ended 2.5 years ago.

 

  • wolstech changed the title to [Solved] NodeJs dependency are not correctly being installed

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...