Closed tabit01 closed 2 years ago
Hello tor-axbit, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
Just to confirm, you installed the mgt-spfx package on your environment? You can see the documentation here :
Before deploying your SharePoint Framework package to your tenant, you will need to deploy the @microsoft/mgt-spfx SharePoint Framework package to your tenant. You can download the package corresponding to the version of @microsoft/mgt-spfx that you used in your project, from the Releases section on GitHub.
https://docs.microsoft.com/en-us/graph/toolkit/get-started/mgt-spfx
I am not able to reproduce the issue. Do you have a repo I could use?
Also, realizing you should not need @microsoft/mgt
in the context of SPFx. Please install @microsoft/mgt-spfx
and @microsoft/mgt-react
only!
Adding @waldekmastykarz for any insights here
Just to confirm, you installed the mgt-spfx package on your environment? You can see the documentation here :
I did not install the .sppkg in my tenant, thank you! Will check tomorrow and reply.
You need the .sppkg to be installed as it provides a single source of registration for our web components! Thanks! Let us know!
Problem solved, by downloading mgt-spfx-2.5.2.sppkg
from Releases section, and uploading to the Sharepoint tenant.
Describe the bug Error in Sharepoint hosted workbench, as well as Sharepoint site:
To Reproduce Steps to reproduce the behavior:
gulp serve
on webpart, setting hosted workbench inserve.json
to initial page.gulp bundle --ship
andgulp package-solution --ship
.sppkg
file to Sharepoint app catalog.Expected behavior The webpart to work on hosted workbench and on Sharepoint site webpart.
Environment (please complete the following information):
My package-solution.json:
My package.json:
Additional context I have posted Q here.
I have also tried in the production Sharepoint environment, and my M365 Dev tenant, with clean App Catalog. Same error. The production tenant might have an older version of
@mgt-spfx
, while the dev tenant is cleaned (both recycle bins) from all previous apps.EDIT: The solution was working fine until I added a Graph Toolkit component, with the necessary dependencies.
EDIT2: I also have a solution in SPfx 1.1.4.0, which is working on a hosted workbench, but not on a SP site on the same tenant.