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
Looking at the git repo I see #1872 introduced a dev package and so spectrum build itself is happy but downstream users are not because the requested "fractionalSecondDigits" is not available unless you upgrade to the latest typescript version (4.3.5)
🤔 Expected Behavior
Upgrading to the latest version just works without the updating typescript version. Or it has to be specified in the release notes what the minimal version of typescript is required.
😯 Current Behavior
Build just fails and has to upgraded to the current typescript version - at the time of this writing 4.3.5 (see below why that might fail in future as well)
So I see the issue, and it seems we've just pushed formatjs' issue onto you. We're looking into ways not to do that.
It's a bit difficult because it's using the Intl namespace in types, and it's using it internally, so the only way to add that is the overrides file that we have. This is not ideal because we'd need to publish it with our package for you to get it; also, it's overriding something that has been addressed in a future version and may conflict with anything you've done. We've no wish to be maintainers of the types for Intl.
We can't make a dependency or peer dependency on TS because that'd interfere with our library users that don't use TS at all.
I don't think upgrading our version of TS solves the issue. However, it's a pretty good solution for you. I'm not sure the best way to signal that the TS version we rely on has been bumped up. Even DefinitelyTyped doesn't have any dep/peerdep requirements. They just say they support the last two.
🐛 Bug Report
We upgraded our project to the latest version and now we are getting a build failure (on typescript 4.0.x):
Looking at the git repo I see #1872 introduced a dev package and so spectrum build itself is happy but downstream users are not because the requested "fractionalSecondDigits" is not available unless you upgrade to the latest typescript version (4.3.5)
🤔 Expected Behavior
Upgrading to the latest version just works without the updating typescript version. Or it has to be specified in the release notes what the minimal version of typescript is required.
😯 Current Behavior
Build just fails and has to upgraded to the current typescript version - at the time of this writing 4.3.5 (see below why that might fail in future as well)
💁 Possible Solution
@formatjs/ecma402-abstract/types/date-time.d.ts
One caveat with solution 2 is: microsoft/TypeScript#42945 so there's the potential to get broken again.
🔦 Context
Our product build got broken.
💻 Code Sample
🌍 Your Environment
🧢 Your Company/Team
🕷 Tracking Issue (optional)
The text was updated successfully, but these errors were encountered: