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

Build fails due to some TypeScript errors #251

Open
kimtore opened this issue Oct 26, 2023 · 0 comments
Open

Build fails due to some TypeScript errors #251

kimtore opened this issue Oct 26, 2023 · 0 comments

Comments

@kimtore
Copy link

kimtore commented Oct 26, 2023

Hi,
This project looks promising but it fails to compile for me with the following build error, which comes from some Javascript/Typescript code.
I'm running on Arch Linux trying the latest AUR build, and tsc is version 5.2.2.

The following warnings were emitted during compilation:

warning: tsc failed with exitcode: 2

error: failed to run custom build command for `weylus v0.11.4 (/home/kimt/.cache/paru/clone/weylus/src/Weylus-0.11.4)`

Caused by:
  process didn't exit successfully: `/home/kimt/.cache/paru/clone/weylus/src/Weylus-0.11.4/target/release/build/weylus-8742f37e5acb9b93/build-script-build` (exit status: 2)
  --- stdout
  cargo:rerun-if-changed=ts/lib.ts
  ../../../../../../node_modules/@types/node/globals.d.ts(72,13): error TS2403: Subsequent variable declarations must have the same type.  Variable 'AbortSignal' must be of type '{ new (): AbortSignal; prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(milliseconds: number): AbortSignal; }', but here has type '{ new (): AbortSignal; prototype: AbortSignal; }'.
  cargo:warning=tsc failed with exitcode: 2
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'weylus-0.11.4-2': 
error: packages failed to build: weylus-0.11.4-2
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