After upgrading from 3.13.0 to 3.14.2, importing certain GSAP modules with a single-word name (e.g. Draggable, Observer) causes TypeScript to report a case-sensitivity error on case-sensitive file systems (macOS/Linux):
import { Draggable } from 'gsap/Draggable'
This results in the following error:
File name ‘…/node_modules/gsap/types/Draggable.d.ts' differs from already included file name ‘…/node_modules/gsap/types/draggable.d.ts' only in casing.
The error disappears when importing the module from the src path:
import { Draggable } from 'gsap/src/Draggable'
or by updating the reference in index.d.ts:
<reference path="Draggable.d.ts"/>
I don’t have extensive experience with this kind of TypeScript issue, so I’m not sure whether this is a problem on GSAP’s side or something related to my TypeScript configuration.