Our state of the art Gantt chart


Post by DevHouse »

Hi,

For exporting the Gantt in PDF an export server is necessary. When trying to run the build script delivered by Bryntum I got a few errors because of a not found puppeteer version, but after fixing that I come across the following error.

Create server executables

pkg@4.3.8
Targets not specified. Assuming:
node14-linux-x64, node14-macos-x64, node14-win-x64
Error! No available node version satisfies ‘node14’

How can I set the targets for pkg to just node14-win-x64? And how can it not find node version 14?
Running node -v returns 14.17.3

The code comes from Gantt version 4.2.2


Post by Maxim Gorkovsky »

Hello.
It seems to be a problem with pkg, their support has multiple reports on a similar matter, like these:
https://github.com/vercel/pkg/issues/838
https://github.com/vercel/pkg/issues/1150

For config options please see their doc: https://github.com/vercel/pkg#targets

I should say that bundling executable is not strictly necessary, you can run project like:

node ./src/server.js

Post by DevHouse »

Ah, thanks!

By the way, I'm using the Dutch translation. In the export dialog window the header "Columns" is not translated.


Post by mats »

Thanks for pointing this out, will be fixed shortly!


Post by DevHouse »

I've also found a way to make the build runnable. Because of pkg version 4 this error is popping up. If you update the package.json with pkg version 5 the build file becomes runnable


Post by Maxim Gorkovsky »

Thanks for the update, we will look into upgrading pkg version


Post Reply