Skip to content

Undici cannot be required in --without-intl Node.js #3002

@panva

Description

@panva

Bug Description

Undici cannot be required in --without-intl Node.js

Reproducible By

# in nodejs/node
./configure --node-builtin-modules-path $(pwd) --without-intl --ninja
make

# in a project with undici
cat package.json | jq '.dependencies.undici'
"^6.10.1"
../node/node -e "require('undici')"

node:internal/encoding:487
          throw new ERR_NO_ICU('"fatal" option');
          ^

TypeError [ERR_NO_ICU]: "fatal" option is not supported on Node.js compiled without ICU
    at new TextDecoder (node:internal/encoding:487:17)
    at Object.<anonymous> (/repo/node_modules/undici/lib/web/websocket/util.js:71:21)
    at Module._compile (node:internal/modules/cjs/loader:1421:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1499:10)
    at Module.load (node:internal/modules/cjs/loader:1232:32)
    at Module._load (node:internal/modules/cjs/loader:1048:12)
    at Module.require (node:internal/modules/cjs/loader:1257:19)
    at require (node:internal/modules/helpers:188:18)
    at Object.<anonymous> (/repo/node_modules/undici/lib/web/websocket/websocket.js:24:5)
    at Module._compile (node:internal/modules/cjs/loader:1421:14) {
  code: 'ERR_NO_ICU'
}

Expected Behavior

Undici CI also tests on Node.js without ICU so that releases that cannot be merged to Node.js don't happen

See

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