Skip to content

m365 spfx project doctor should validate typescript version #6716

@Adam-it

Description

@Adam-it

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions