Jan 12 2023 10:15 PM - edited Jan 12 2023 10:16 PM
Hi,
We have been following the documentation to develop MS Teams meeting extension app using Angular as our Client side framework. We have successfully develop few screens of the app with SSO implementation and its working.
Now, we are not able to add teams library to any of our new components though we have used same library in other components and its working. We are using this piece of code to add library (import * as microsoftTeams from "@microsoft/teams-js") and when we use "microsoftTeams" object in any function it breaks, (https://learn.microsoft.com/en-us/javascript/api/overview/msteams-client?view=msteams-client-js-late.... Due to the reason as soon as we add this library our server fails to start with following error
"npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! events-light@1.0.0 serve:ssr: `node --prof dist/server/main.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the events-light@1.0.0 serve:ssr script.npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: the log file"
Jan 13 2023 03:00 AM
@Mudassir_Nayyer - Could you please try to delete the node_modules folder and package-lock.json and check it once again? And please confirm which version you are importing @microsoft/teams-js 2.6.1 or 2.7.1?
Jan 13 2023 03:17 AM
Hi Prasad,
We are using @Pernille-Eskebo/teams-js 2.6.1. We have already tried deleting the node_modules and package-lock.json file but no luck. should we update the package?
Jan 13 2023 03:39 AM
Jan 17 2023 04:00 AM - edited Jan 17 2023 04:04 AM
@Mudassir_Nayyer - Could you please share your complete log?
As you have mentioned that you have used same library in other components and it's working fine. Could you please check the differences in these components and check the packages dependencies.