SplitText Plugin Throws Error "Intl.Segmenter is not a constructor" in Older Browser Versions
Tested Browser Version: Chromium 86.0.4236.0
The issue originates from line 71 in SplitText.ts: _charSegmenter: any = typeof Intl !== "undefined" ? new (Intl as any).Segmenter() : 0 In the tested browser, Intl exists but Intl.Segmenter does not, leading to an exception being thrown.
Interesting. What browser/version was giving you trouble? We can add another conditional check in the next version.
I tested multiple Chrome versions between 56 and 86, and also Firefox 120.
According to the MDN documentation, browsers/versions that support Intl but not Intl.Segmenter may be affected.
I encountered the same problem.
I temporarily added a conditional judgment to solve the problem, and I hope the GSAP can support it in the future.
SplitText is still causing issues on older FF versions (tested on 120, 125)
We've got this fixed in the next release which we hope to launch in the next 2-3 weeks.