Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New features of JS #25

Closed
madatbay opened this issue Jan 6, 2022 · 3 comments
Closed

New features of JS #25

madatbay opened this issue Jan 6, 2022 · 3 comments

Comments

@madatbay
Copy link

madatbay commented Jan 6, 2022

Most of the js features are not working, so I have to depreciate newer features to older ones. Cannot use foreach, const, .then, async/await, .includes, and etc. If I use it, the script file is ignored on pdf generation. And cannot use another feature for some of then like .then

@chdanielmueller
Copy link
Member

Hi @madatbay

This sounds like you want to use those features while generating a pdf via wkhtmltopdf? e.g. a script within the html?
This would be an issue for https://github.com/wkhtmltopdf/wkhtmltopdf

If I got you wrong then the issue has probably to do with the node version in the image you are using.
If that's the case please try with 16.13.1-0.12.6-small or 16.13.1-0.12.6-full which feature all capabilities of node@16

@madatbay
Copy link
Author

madatbay commented Jan 6, 2022

Currently, I'm using surnet/alpine-python-wkhtmltopdf:3.9.5-0.12.6-full version of docker-wkhtmltopdf. This image looks like contains all the features of wkhtmltopdf already and I have no control over the image when I use the docker version. Thought that could be some configuration error or something like this.

Looked through the issue of https://github.com/wkhtmltopdf/wkhtmltopdf and looks like Promises are not supported. Need to apply another logic. Thank you for early response

@madatbay madatbay closed this as completed Jan 6, 2022
@chdanielmueller
Copy link
Member

Thank you for getting back to the issue and closing it! 👍

Depending on your use case taking a look at https://babeljs.io could be worth it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants