Skip to content

language-server test suite fails on Node.js >=23 due to angle-bracket syntax #2793

@polyzen

Description

@polyzen

Describe the bug

Tests fail on Node.js >=23 with "The angle-bracket syntax for type assertions, <T>expr, is not supported in type strip mode. Instead, use the 'as' syntax: expr as T."

Reproduction

https://gitlab.archlinux.org/archlinux/packaging/packages/svelte-language-server/-/blob/0.17.16-1/PKGBUILD?ref_type=tags#L23-38

The package has to use nodejs-lts in the meantime.

Expected behaviour

Tests pass

System Info

  • OS: Arch Linux
  • IDE: Neovim

Which package is the issue about?

svelte-language-server

Additional Information, eg. Screenshots

Started working on this, but it's quite tedious. Maybe there's a way to automate it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstream

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions