Skip to content

Node 20 support #26114

Closed
Closed

Description

@JeanMeche

Mostly to help outsiders tracking the support of Node20.

Currently it's not supported :

const SUPPORTED_NODE_MAJORS = [16, 18];

Activity

  1. added this to the v17 milestone on Oct 24, 2023
  2. marcj commented on Oct 26, 2023

    @marcj

    Indeed, I was just confused because I got a weird error during "ng build" on v17.rc-1 when using Node v20.

    An unhandled exception occurred: Invalid URL
    See "/private/var/folders/6q/zfv9dpln0k1897hvcd1r9ylr0000gn/T/ng-8aEWOu/angular-errors.log" for further details.
    
    $ cat /private/var/folders/6q/zfv9dpln0k1897hvcd1r9ylr0000gn/T/ng-8aEWOu/angular-errors.log
    [error] TypeError [ERR_INVALID_URL]: Invalid URL
        at new NodeError (node:internal/errors:405:5)
        at new URL (node:internal/url:778:13)
        at moduleResolve (node:internal/modules/esm/resolve:821:16)
        at defaultResolve (node:internal/modules/esm/resolve:1034:11)
        at nextResolve (node:internal/modules/esm/hooks:832:28)
        at Hooks.resolve (node:internal/modules/esm/hooks:277:30)
        at ModuleLoader.resolve (node:internal/modules/esm/loader:337:35)
        at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:220:38)
        at ModuleLoader.import (node:internal/modules/esm/loader:307:34)
        at Hooks.register (node:internal/modules/esm/hooks:138:51)
        at MessagePort.handleMessage (node:internal/modules/esm/worker:168:24)
        at [nodejs.internal.kHybridDispatch] (node:internal/event_target:807:20)
        at exports.emitMessage (node:internal/per_context/messageport:23:28)
    

    It goes away with using Node 18.

  3. self-assigned this
    on Oct 30, 2023
  4. added 8 commits that reference this issue on Oct 30, 2023
    87ff313
    b663fd3
    5b8abf7
    3393981
    a1cbda1
    a37f266
    6117c11
    b6d7e10
  5. added 2 commits that reference this issue on Oct 30, 2023
    91dcae1
    1f7156b
  6. JeanMeche commented on Nov 7, 2023

    @JeanMeche
    MemberAuthor

    For v16 yes. If you want Node20 support, you have to use v17.

  7. daazb001 commented on Nov 7, 2023

    @daazb001

    Okey, thanks. This is a bit unfortunate for our team, since we have to choose between a potentially unstable Angular Version 17 with support for the current LTS version of Node.js (20) or the LTS Version 16 of Angular with an older version of Node.js (18).

  8. alan-agius4 commented on Nov 7, 2023

    @alan-agius4
    Collaborator

    v17 will be released as stable tomorrow.

  9. Yogu commented on Nov 8, 2023

    @Yogu

    Will support for Node 20 be backported to Angular 15 and 16? Both will still be supported for 6 to 12 months, and making developers switch between node versions for different projects just because it's not officially supported is not ideal (speaking as a platform engineer for our team). The PR did not need to make any changes, right? So maybe just backporting the tests would enable official Node 20 support for Angular 15 and 16?

  10. JeanMeche commented on Nov 8, 2023

    @JeanMeche
    MemberAuthor

    LTS versions (v15, v16 today) only receive security updates.

  11. alan-agius4 commented on Nov 8, 2023

    @alan-agius4
    Collaborator

    While the above mentioned PR doesn’t add any changes, there were other PRs that were landed before hand that were required to support Node 20 included but not limited to updateding NPM dependencies.

  12. angular-automatic-lock-bot commented on Dec 9, 2023

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  13. locked and limited conversation to collaborators on Dec 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions