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
node_modules/@types/diff/index.d.ts:43:26 - error TS2694: Namespace 'Intl' has no exported member 'Segmenter'.
43 intlSegmenter?: Intl.Segmenter | undefined;
I wanted to report that here and not in definitely typed, because since you have added the support for this in 2024, you might want to check, if Intl has updated something that requires refactoring.
Yeah, this happens if your compilation target is one for which Intl.Segmenter didn't yet exist. Interesting. I may try to address this once we're shipping our own TypeScript definitions instead of relying on DefinitelyTyped, but I don't actually know what the right approach to take here is, and will need to do some research.
Activity
lsmith77 commentedon Jan 23, 2025
any update here?
updating my tsconfig.json to use
es2022for thelibfixed it for me. need to see what the general impact is though.isaachinman commentedon Feb 21, 2025
Related to #303
ExplodingCabbage commentedon Mar 17, 2025
Yeah, this happens if your compilation
targetis one for whichIntl.Segmenterdidn't yet exist. Interesting. I may try to address this once we're shipping our own TypeScript definitions instead of relying on DefinitelyTyped, but I don't actually know what the right approach to take here is, and will need to do some research.