Forum Bugs

unexpected token reserved("const")

kathar0s
I think this is about ES2015(ES6) problem.

Prince cannot recognize ES6 syntax maybe.

const state = {
activateDownload: false,
toastVisible: false,
toastMessage: '',
toastState: false,
useGNB: true
}

is there a plan to fix this problem?
mikeday
Correct, Prince does not support ES6 at this time. We may fix this in the future, but not in the short term.
jamespaden
Any updated plans to support ES6?

Try DocRaptor - PrinceXML web service and official PrinceXML partner

mikeday
Not yet, but it's something we should think about for 2021. Are there any particular scripts or language features that come up repeatedly?