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
With 9342da7 I updated the intl library related dependencies to the latest version. This resolved the issue with the divergent TranslationAST / MessageFormat types.
However @types/es-abstract, which is a dependency of @formatjs/intl-numberformat assumes methods only added in ES2020, like String#matchAll(). For host projects that do not yet target ES2020 or do not have ES2020 listed in their lib, this will throw type errors.
The fix is trivial: Just raise the compilerOptions.target to ES2020 or add ES2020 to compilerOptions.lib.
Is this something we should document somewhere?
The text was updated successfully, but these errors were encountered:
With 9342da7 I updated the intl library related dependencies to the latest version. This resolved the issue with the divergent
TranslationAST
/MessageFormat
types.However
@types/es-abstract
, which is a dependency of@formatjs/intl-numberformat
assumes methods only added in ES2020, likeString#matchAll()
. For host projects that do not yettarget
ES2020 or do not haveES2020
listed in theirlib
, this will throw type errors.The fix is trivial: Just raise the
compilerOptions.target
toES2020
or addES2020
tocompilerOptions.lib
.Is this something we should document somewhere?
The text was updated successfully, but these errors were encountered: