Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

TypeScript errors.ts file has errors on fresh install and npm run build fails #213

@Ethan-Guttman

Description

@Ethan-Guttman

Steps to Reproduce

  • Clone local repository
  • Try to compile/build

Observed Behaviour

  • Fails with semantic error TS2322:

image

  • Error is located in src/helpers/errors.ts

Expected Behaviour

  • succeeds compile on fresh install

Possible Solution

  • I have a solution already but I'd like it to get sanity checked
  • In same file as error just switch line 14 from
    export type Errors = NonEmptyArray<string>;
    to
    export type Errors = NonEmptyArray<AnyJson>;
    I got it passing all tests and I'll be making a pull request with it soon

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