Open Jesus89 opened 7 years ago
@Jesus89 This is angular-gettext-tools, which you normally only call from Node.
What do you mean with ES5 projects?
Hi @rubenv
I am using angular-gettext-tools in a NW.js project without babel. All is written in EcmaScript5. When I updated the dependencies, the following error appeared:
".../node_modules/typescript-eslint-parser/lib/ast-converter.js:41
module.exports = (ast, extra) => {
^^
Unexpected token =>"
So I checked that from 2.3.5 to 2.3.6, two major jumps where added in the 'typescript-eslint-parser' package, than includes EcmaScript6 code. I didn't expect that in a bugfix release, so I changed from "~2.3.3" to "2.3.5".
I see, didn't expect them to make that much of a jump either.
Either way: I'm pretty sure NW.js supports short function syntax, have you tried upgrading your runtime?
I have pending to update NW.js to the latest version in my project. I will check this issue again when all is up to date.
Pull request #171 adds ES6 code, crashing for ES5 projects.