Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Using core-js >= 3.6.2 hangs #4640

Open
irbian opened this issue Mar 18, 2020 · 6 comments
Open

Using core-js >= 3.6.2 hangs #4640

irbian opened this issue Mar 18, 2020 · 6 comments

Comments

@irbian
Copy link

irbian commented Mar 18, 2020

wkhtmltopdf version(s) affected: 0.15.x

Description
If the code includes core-js >= 3.6.2, it hangs. Probably related to zloirock/core-js#764

Possible Solution
This is another reason to try to update the webkit engine

@gerhat
Copy link

gerhat commented Nov 3, 2020

Same issue for me

@terencehonles
Copy link
Contributor

I identified this as the culprit zloirock/core-js#911 it seems to load the polyfills (at least not hang) manually patching in those changes to my Angular app. I'll need to deploy a copy to prod to test that the app actually boots. I was only testing that it didn't get stuck at the polyfills anymore.

@terencehonles
Copy link
Contributor

Looks like the check was dropped instead of changed zloirock/core-js@944a687 so this problem will go away in the release after 3.8.3 (next release)

@terencehonles
Copy link
Contributor

core-js 3.9.0 has been released with the fix

@gerhat
Copy link

gerhat commented Mar 4, 2021

I can confirm the issue has been fixed in 3.9.1

@dswitzer
Copy link

I've got a couple of shims (wkhtmltopdf-shim.zip) that can be used to work around this bug. I was running into this yesterday trying to get AmCharts 4 to work so came up with this:

  1. wkhtmltopdf-shim.js — Adds polyfills (e.g. Function.prototype.bind(), window.requestAnimationFrame(), etc.) for which the version of Webkit in wkhtmltopdf lacks proper support.
  2. wkhtmltopdf-corejs-shim.js — A shim is designed to specifically target the issues with Core-JS and might need to be added to any page that uses Core-JS, like AmCharts.

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

No branches or pull requests

4 participants