Skip to content

3.14.0 – TypeScript case-sensitivity issue with single-word module imports #637

@OversensitiveCat

Description

@OversensitiveCat

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions