user20404265
user20404265

Reputation:

SPFx Teams app working locally but not working after being installed in Teams

I have created the SharePoint Framework app for Microsoft Teams.

When I run the app locally, It is working as expected.

But when I generated a package for Teams using Teams Toolkit from VS Code and deployed the same package in Teams. It threw the below error. enter image description here

Can anyone help me with the same?

Thanks

Upvotes: 0

Views: 441

Answers (1)

yuqi77
yuqi77

Reputation: 1

One possible reason I have noticed before is that deployment of the app package to the app catalog is not done. This means the user just run "provision" but did not run "deploy" in Teams Toolkit before previewing the dev app in Teams. You could click "deploy" in Lifecycle section which will generate the .sppkg file and upload the file to the app catalog automatically for you.

Another possible reason may be a dependency issue, like if the Microsoft Graph Toolkit SharePoint Framework package is needed but not deployed to your app catalog. If that is the case, you could download it from https://github.com/microsoftgraph/microsoft-graph-toolkit/releases and upload it to the SharePoint Online app catalog. To learn more see https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-web-part-microsoft-graph-toolkit?WT.mc_id=m365-80548-wmastyka#deploy-the-microsoft-graph-toolkit-sharepoint-framework-package.

You could also post the question here if it is related to Teams Toolkit https://github.com/OfficeDev/TeamsFx/issues

Upvotes: 0

Related Questions