@rollup/plugin-terser incompatible with Node JS 14.x #1872
Unanswered
joelwatson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The docs for Terser suggest that the minimal version of Node required is 14.x. However, beginning with Terser v.0.4.3, the following error occurs:
This is because
[email protected]
is usingArray.at
which wasn't added to node until16.x
For others encountering this issue, I found that downgrading
@rollup/plugin-terser
to0.4.2
resolves the error and appears to work as expected.I DO think the documentation should be updated, as Node 14 will not work out of the box with this plugin in versions beyond
0.4.2
Beta Was this translation helpful? Give feedback.
All reactions