-
Notifications
You must be signed in to change notification settings - Fork 405
Description
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