You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Node 22 has warning in every cli command (eslint error) #679
aio report -b
(node:61566) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Running with --trace-deprecation flag:
node --trace-deprecation ~/.nvm/versions/node/v22.10.0/bin/aio info
(node:64405) [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:399:7)
at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
at loadBuiltinModule (node:internal/modules/helpers:114:7)
at Function._load (node:internal/modules/cjs/loader:1100:17)
at TracingChannel.traceSync (node:diagnostics_channel:315:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
at Module.require (node:internal/modules/cjs/loader:1340:12)
at require (node:internal/modules/helpers:141:16)
at Object.<anonymous> (/Users/jessem/.nvm/versions/node/v22.10.0/lib/node_modules/@adobe/aio-cli/node_modules/whatwg-url/lib/url-state-machine.js:2:18)
schema-utils@4.2.0 has updated the ajv that has the required updates. However, webpack needs to have a new release that uses the new schema-utils, and that timeline for update is unknown. For now, I recommend the app-dev plugin do this: https://github.com/eslint/eslint/pull/18762/files
Update swagger-client for the @adobe/aio-lib-console
Hey @shazron , thanks for overriding the dependencies with n22 compatible ones!
Can we expect this to be released soon? Just asking, as we plan to release a new version of our aio plugin, we may want to wait for the n22 compatibility and do this in the same go.
Re-opened. In local testing the overrides works but under certain circumstances listed here: npm/cli#5850
But when installing via npm install -g @adobe/aio-cli the overrides do not work unfortunately because we have a package-lock.json. We need to find a workaround.
Hi @shazron
Is there news on this? We keep getting support requests raised for our aio plugin as users tend to use node 22 and 23 now, and run into problems.
It's not a blocker - so it's not scheduled for work on it currently, I'm doing it on my spare time. Please raise a support issue if it's critical so it can be scheduled.
Activity
aiojbot commentedon Oct 23, 2024
JIRA issue created: https://jira.corp.adobe.com/browse/ACNA-3249
shazron commentedon Nov 7, 2024
Unfortunately punycode is dependency of a dependency, will have to investigate whether they have been updated.
shazron commentedon Nov 7, 2024
swagger-client@3.31.0(the latest) does not have punycode as a dependency.webpack@5.96.1(the latest) still has thepunycode@2.3.1dependency.shazron commentedon Nov 7, 2024
shazron commentedon Nov 8, 2024
webpack can't update to the latest schema-utils because of node version support reasons: webpack/schema-utils#191
shazron commentedon Nov 8, 2024
PR adobe/aio-lib-console#87
shazron commentedon Nov 8, 2024
PR adobe/aio-cli-plugin-app-dev#124
shazron commentedon Nov 15, 2024
PRs merged and released.
shazron commentedon Jan 7, 2025
Re-opening since the releases don't totally solve the issue yet.
shazron commentedon Jan 7, 2025
See adobe/aio-lib-core-networking#84
See #704
RemoLiechti commentedon Jan 16, 2025
Hey @shazron , thanks for overriding the dependencies with n22 compatible ones!
Can we expect this to be released soon? Just asking, as we plan to release a new version of our aio plugin, we may want to wait for the n22 compatibility and do this in the same go.
shazron commentedon Jan 17, 2025
I'm scheduling it for next week.
shazron commentedon Jan 21, 2025
Re-opened. In local testing the overrides works but under certain circumstances listed here: npm/cli#5850
But when installing via
npm install -g @adobe/aio-clithe overrides do not work unfortunately because we have a package-lock.json. We need to find a workaround.This is an npm issue (Jan, Nov 2022):
This PR purportedly will fix the issue (Nov 2023):
shazron commentedon Jan 21, 2025
possible fixes:
node-fetch@3.xwhich is ESMshazron commentedon Jan 22, 2025
Doing fix 2 since mixing ESM with CJS in Jest tests is not trivial.
Done:
Pending:
However, there are sub-dependencies out of our control (like octokit), not sure if it affects things yet:
RemoLiechti commentedon Feb 6, 2025
Hi @shazron
Is there news on this? We keep getting support requests raised for our aio plugin as users tend to use node 22 and 23 now, and run into problems.
shazron commentedon Feb 6, 2025
It's not a blocker - so it's not scheduled for work on it currently, I'm doing it on my spare time. Please raise a support issue if it's critical so it can be scheduled.
pru55e11 commentedon May 7, 2025
@shazron since 22 is now supported in the CLI can this be closed?
shazron commentedon May 8, 2025
No, this issue is caused by Node 22.
pru55e11 commentedon May 8, 2025
this message is now suppressed in node >=22.14 nodejs/node#56632 - maybe we should just make that the min required version of 22?
shazron commentedon May 8, 2025
oh thank God 😅 for reference, the commit shows in the release notes, where the warning will not show if it's in node_modules: https://nodejs.org/en/blog/release/v22.14.0 commit
I say we can up it to 22.14 min, and if anyone complains they can just update their node version. This issue can be closed then
RemoLiechti commentedon May 8, 2025
I confirm this now works with latest aio-cli and node 22, thank you.