MicrosoftDocs / msteams-docs

Source for the Microsoft Teams developer platform documentation.
https://aka.ms/teamsdev
Creative Commons Attribution 4.0 International
288 stars 511 forks source link

Changes made on SPFx project not visible in Teams #11448

Open bhoomesh-spe opened 3 months ago

bhoomesh-spe commented 3 months ago

Steps to reproduce

I have created the SPFx project and integrated that project into the Teams project

Expected behavior

The changes should be reflected to the Teams after uploading a new package in Teams.

Actual behavior

When I made the change in the SPFx project the changes were not reflected in the Teams after generating and deploying/uploading a new package in Microsoft Teams.

Error details

There are no errors while executing below commands

gulp clean gulp build --ship gulp bundle --ship gulp package-solution --ship

sayali-MSFT commented 3 months ago

@bhoomesh-spe - Thanks for reporting your issue. We will check this at our end and will get back to you.

sayali-MSFT commented 3 months ago

@bhoomesh-spe - Could you please check the below details: - 1.Teams App: If you’re testing in a development environment, ensure the Teams app is updated with the latest version of your package. You might need to remove the app from Teams and re-add it.

  1. Double-check the Teams manifest file (manifest.json) to ensure it is correctly configured. Ensure the webSiteUrl or contentUrl in the manifest points to the correct location of your SPFx web part. 3.SPFx Version: Ensure that the SPFx version you are using is compatible with the Microsoft Teams environment you’re deploying to. Sometimes version mismatches can lead to unexpected behavior. 4.Browser Console: Open the browser’s developer console to check for any errors or warnings when loading the Teams app. This can provide clues if something is failing to load.

Are you creating the SPFX project using Yeoman generator?

sagarMehta1907 commented 3 months ago

@sayali-MSFT

Yes, we are generating an SPFx project using a Yeoman generator.

Already, we have checked all the updates you have mentioned above.

sayali-MSFT commented 3 months ago

@sagarMehta1907 -ok. We will try this from our end and let you know the update.

sagarMehta1907 commented 3 months ago

When we run the application using the bellow command from the toolkit locally.

image

And, Allow us to "Load debug scripts", we will see the new updates.

image

But, while we generate a package using the command below and try to upload a zip file to the teams manually, we cannot see the updates.

image

sayali-MSFT commented 3 months ago

@bhoomesh-spe @sagarMehta1907 -We tried the sample below, and it is working fine on our end. Could you please try with the below sample. Sample Link-https://learn.microsoft.com/en-us/microsoftteams/platform/sbs-gs-spfx?tabs=vscode%2Cviscode&tutorial-step=1

image

sagarMehta1907 commented 3 months ago

@sayali-MSFT

Thanks for your reply.

Yes, it works according to the link. But it did not work after the production build. For example, I have completed all the development in my SPFx app and now I want to publish the app to the teams. At that time if we generate a team's app zip it's content only manifest.json file. So, How can I give my SPFx app update means package file?

sayali-MSFT commented 3 months ago

Please have look into this document-https://learn.microsoft.com/en-us/sharepoint/dev/spfx/build-for-teams-meeting-app#update-the-web-part-manifest-to-make-it-available-for-microsoft-teams

Hope it is helpful!!

sagarMehta1907 commented 3 months ago

@sayali-MSFT

It looks like we don't need to create a separate app for the teams. We can manage this in our SPFx app only. However, I want to publish my app into the team's app store for the end users. We have already published our app in the SharePoint store.

sayali-MSFT commented 2 months ago

Could you please confirm if your issue has resolved or still looking for any help?

bhoomesh-spe commented 2 months ago

I am facing the below issue while creating a new project using Teams Tool Kit. Please refer to the below screenshot. Screenshot 2024-09-09 113632