Page MenuHomePhabricator

node10 warning in GrowthExperiments extension
Closed, DeclinedPublic

Description

There is a warning in the tsconfig.json file: Option 'moduleResolution=node10' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error. Visit https://aka.ms/ts6 for migration information.

The solution to this issue may be to uptade extension to node16 or bundler

This isn't a bug at the moment, so I'm marking it as a regular task.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
VadymTS1 triaged this task as Medium priority.Jul 10 2026, 3:52 PM

Hello @VadymTS1,
I'd like to work on this task. I'll investigate the issue and submit a Gerrit patch once I have a fix.

@Anirudh_KK You can work, but I would wait for a response from the Growth-Team or one of GrowthExperiments extension maintainers

Change #1309759 had a related patch set uploaded (by Anirudh_K; author: Anirudh_K):

[mediawiki/extensions/GrowthExperiments@master] build(typescript): silence moduleResolution=node10 deprecation warning

https://gerrit.wikimedia.org/r/1309759

@VadymTS1 I have submitted the patchset for code review. Let me know if any changes needed

@Anirudh_KK: There isn't much sense in pinging Vadym; see previous comments.

Hi @Anirudh_KK, thank you for working on this. I discussed the task with other members of Growth engineering. Rather than silencing the warning, we think it would be better to upgrade the extension to node16 update the module resolution strategy. You’re welcome to start working on the upgrade. Please let us know if you have any further questions.

EDIT: My previous message was incorrect. I updated it and here are related docs. https://www.typescriptlang.org/tsconfig/#moduleResolution I hope this proves helpful.

@EMcFarland-WMF Thanks for looping in the team and for the guidance! That makes sense upgrading to node16 is the better long-term fix rather than just silencing the deprecation warning. I'll pick up T432008 and get started on the upgrade. Will update here (or on the subtask) if I run into any issues or have questions along the way.

Change #1309759 abandoned by Aklapper:

[mediawiki/extensions/GrowthExperiments@master] build: silence moduleResolution=node10 deprecation warning

Reason:

Superseded by T432008

https://gerrit.wikimedia.org/r/1309759

@Anirudh_KK Sounds good! We look forward to seeing your progress.