Skip to content

bun install fails #87

Description

@alan-wu

Running bun installs on various version of node will fail with typescript errors.

src/layers/flightpaths.ts:110:15 - error TS2339: Property 'setUniforms' does not exist on type 'Model'.

110         model.setUniforms({numSegments: numSegments})
                  ~~~~~~~~~~~

src/layers/flightpaths.ts:260:56 - error TS2352: Conversion of type 'number[]' to type 'Position' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
  Type 'number[]' is not comparable to type 'readonly [number, number, number]'.
    Target requires 3 element(s) but source may have fewer.

260             getSourcePosition: (f: PathProperties) => (f.pathStartPosition as Position),
                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/layers/flightpaths.ts:261:56 - error TS2352: Conversion of type 'number[]' to type 'Position' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
  Type 'number[]' is not comparable to type 'readonly [number, number, number]'.
    Target requires 3 element(s) but source may have fewer.

261             getTargetPosition: (f: PathProperties) => (f.pathEndPosition as Position),
                                                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Found 3 errors in the same file, starting at: src/layers/flightpaths.ts:110

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