Skip to content

Release 7.13.0 drops support for node 18 because of use of File class #4371

Description

@joejonespushsecurity

Bug Description

When running an app using undici I get the following error.

webidl.is.File = webidl.util.MakeTypeAssertion(File)
                                               ^

ReferenceError: File is not defined

Reproducible By

Install the auth0-deploy-cli package. Then run a0deploy --version

Expected Behaviour

It to return the version number not raise this error.

Logs & Screenshots

All above.

Environment

Mac osx with node version 18.17.1

Additional context

This looks to have been changed in this PR #4362. Doesn't this mean that node 18 will no longer work with this package?

Pretty weird error to get as it happens as soon as the package is imported. Having to go to your releases to find the issue is frustrating.

Rolling back to 7.12.0 resolves the issue

Thanks in advance

Activity

  1. mcollina commented on Jul 31, 2025

    @mcollina
    SponsorMember

    As said in the the other issues of this kind, undici v7 supports Node.js 18+. Downgrade to v6 or upgrade Node.js.

  2. joejonespushsecurity commented on Jul 31, 2025

    @joejonespushsecurity
    Author

    That's fine. We will use 7.12.0 as we have previously. Just a bit rubbish that we have to stick to that.

    To drop the support in a minor version update without anything in your release notes isn't very clear.

  3. Uzlopak commented on Jul 31, 2025

    @Uzlopak
    Contributor
  4. KhafraDev commented on Jul 31, 2025

    @KhafraDev
    Member

    v18 hasn't been supported in a while

    undici/package.json

    Lines 132 to 134 in 8bbf77c

    "engines": {
    "node": ">=20.18.1"
    },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions