OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
459 stars 189 forks source link

Feature request: Support node 20 - upgrade msal-node module #10849

Open omeralon1 opened 9 months ago

omeralon1 commented 9 months ago

Request Details Trying to install teamsfx package on node 20 project with yarn, but the installation can't be done due to old deprecated version of msal-node package requirement (1.18.4) This version supports node version 18 and below. The error I get when trying to install: @azure/msal-node@1.18.4: The engine "node" is incompatible with this module. Expected version "10 || 12 || 14 || 16 || 18". Got "20.9.0" After this message yarn fails the installation.

Solution Description Upgrade msal-node module to version 2+, which supports node 20.

Alternatives Considered

Will appreciate your help!

eitanlevinzon-astrix commented 9 months ago

+1

MuyangAmigo commented 8 months ago

Hey @omeralon1, @eitanlevinzon-astrix we are working on an upgrade of teamsfx to use the latest msal-node packages, please stay tunned.

yiqing-zhao commented 8 months ago

Hi @omeralon1, @eitanlevinzon-astrix, all Teams bots and message extensions are developed using the botbuilder-js SDK. Presently, we're eagerly anticipating support for Node.js 20 in the Botbuilder SDK. You can track the progress of this issue at microsoft/botbuilder-js#4550.

We've conducted tests to ensure that our current templates remain functional after upgrading to Node.js 20. As a temporary workaround for any warnings encountered, you can use "npm install --ignore-engines". We'll keep you informed and update here once we receive any feedback from the botbuilder team. Thanks!

omeralon1 commented 8 months ago

Hi @yiqing-zhao Thank you for the answer πŸ˜„ Will keep tracking πŸ‘€

Kamahl19 commented 1 month ago

@yiqing-zhao @MuyangAmigo The botbuilder has updated msal to @azure/msal-node in their latest releast however the @microsoft/teamsfx still references the "@azure/msal-node": "^1.14.6", which is causing installation warning.

yiqing-zhao commented 1 month ago

@yiqing-zhao @MuyangAmigo The botbuilder has updated msal to @azure/msal-node in their latest releast however the @microsoft/teamsfx still references the "@azure/msal-node": "^1.14.6", which is causing installation warning.

Hi @Kamahl19, we're currently working on upgrading TeamsFx SDK, and will update here once it’s merged and released. Thanks!