vendure-ecommerce / ngx-translate-extract

Extract translatable (using ngx-translate) strings and save as a JSON or Gettext pot file
MIT License
51 stars 19 forks source link

In version 8.2.3 - An error occurred: SyntaxError: Unexpected token } in JSON at position 641 #25

Open rapelt opened 1 year ago

rapelt commented 1 year ago

When upgrading from 8.2.1 to 8.2.3 I am now seeing the following error message

An error occurred: SyntaxError: Unexpected token } in JSON at position 641

when running

ngx-translate-extract --input ./src --output ./src/app/locale/template.pot --format=pot --clean --sort --replace

sod commented 12 months ago

may be the same as https://github.com/vendure-ecommerce/ngx-translate-extract/issues/24 and fixed since https://github.com/vendure-ecommerce/ngx-translate-extract/pull/30 (9.0.1). Or alternatively remove trailing commas in your tsconfig.json if you can't upgrade to 9.x / angular@17 yet.