Skip to content

@microsoft/mgt-spfx 3.1.3 unsupported Engine on Node 22 #2035

@tivanchuk-hawe

Description

@tivanchuk-hawe

On 3.22 there is a package @microsoft/mgt-spfx 3.1.3., which seems to be outdated and doesn't support Node 22, which is an issue on SPFX 1.21.1, because it's works only there:

npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: '@microsoft/[email protected]',
npm warn EBADENGINE required: { node: '>=16.13.0 <17.0.0 || >=18.17.1 <19.0.0' },
npm warn EBADENGINE current: { node: 'v22.15.1', npm: '10.9.2' }
npm warn EBADENGINE }

Not sure if it's the replacement, but consider replacing it with @microsoft/mgt-spfx-utils taken from Upgrade to the latest version of Microsoft Graph Toolkit

Category

[ ] Enhancement

[x ] Bug

[ ] Question

Version

3.22.0

Expected / Desired Behavior / Question

all pakages works in Node 22

Observed Behavior

@microsoft/mgt-spfx, seems to be used for Graph API connections, doesn't work in Node 22

Steps to Reproduce

npm install && npm dedupe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions