You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's the tsconfig dependency. The loadSync method call in the end, if it finds a tsconfig.json, will do JSON.parse on its contents:
But typescript doesn't use a pure JSON. they use their own parser, thats kinda json5'ish. It e.g. allows comments and dangling commas.
There is an issue for it TypeStrong/tsconfig#30, but as the last change for that library was 5 years ago, I doubt someone will touch it.
What this lib is concerned, the easiest fix may be, to replace loadSync usage with resolveSync (from npm:tsconfig) => fs.readFileSync (from node:fs) => json5.parse (from npm:json5).
Well, or you go through your tsconfigs and remove dangling commas/make them valid JSON :)
After updating to version 8.2.3 I receive an error, when try to extract the translations.
There is no such error when I use version 8.2.2
The text was updated successfully, but these errors were encountered: