cli-microsoft365 icon indicating copy to clipboard operation
cli-microsoft365 copied to clipboard

`m365 spfx project doctor` should validate typescript version

Open Adam-it opened this issue 8 months ago • 2 comments

since SPFx 1.21.x we should be using TS v5 -> https://learn.microsoft.com/en-us/sharepoint/dev/spfx/release-1.21#typescript-5x-support

if we look at a newly scaffolded project in SPFx 1.21.x we see that TS v5 only accepts patch version updates and it should stay in v5

We should add validation to the spfx project doctor command for SPFx 1.21.0 and 1.21.1 to check if TS version in the package.json is at least ~5.3.3

Adam-it avatar May 08 '25 07:05 Adam-it

Hi @Adam-it, I'm still new to CLI development, but I can give this a shot! Can you assign this to me?🐱

nirav-raval avatar Jun 10 '25 04:06 nirav-raval

Hi @Adam-it, I'm still new to CLI development, but I can give this a shot! Can you assign this to me?🐱

All yours. Don't worry, there is a first time for everything. If you have any question regarding implementation please do ask. We are here to help you succeed 👍

Adam-it avatar Jun 10 '25 05:06 Adam-it