Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ethan-Guttman opened this issue Feb 25, 2024 · 0 comments

Comments

@Ethan-Guttman
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant