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

Node v21.7.3 prints out deprecation warning on import #165

Open
nwwells opened this issue Apr 20, 2024 · 1 comment
Open

Node v21.7.3 prints out deprecation warning on import #165

nwwells opened this issue Apr 20, 2024 · 1 comment

Comments

@nwwells
Copy link

nwwells commented Apr 20, 2024

Whenever ynab is imported I get the following printed to the console:

(node:52279) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

Rerunning with --trace-deprecation shows the following:

(node:52535) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:398:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:337:10)
    at loadBuiltinModule (node:internal/modules/helpers:104:7)
    at Module._load (node:internal/modules/cjs/loader:999:17)
    at Module.require (node:internal/modules/cjs/loader:1230:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> ({my project directory}/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
    at Module._compile (node:internal/modules/cjs/loader:1368:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1426:10)

Relevant part of the dependency tree

└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      ├── UNMET OPTIONAL DEPENDENCY encoding@^0.1.0
      └─┬ [email protected]
        ├── [email protected]
        └── [email protected]
@bradymholt
Copy link
Member

bradymholt commented May 30, 2024

Relevant issue: node-fetch/node-fetch#1793. It looks like the [fetch-ponyfill] dependency version (https://github.com/qubyte/fetch-ponyfill) is using node-fetch@2 which is source of this deprecation notice.

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

2 participants