I have an SPFx webpart and an SPFx extensions that getting data from Taxonomy Term Store.
Both of them are working well on all pages (Site Content page, Library page, Site page, etc.) except on a Team Site Homepage.
I've tried several approaches to get the Taxonomy data in the SPFx code:
- Add the references to the SharePoint JSOM in the config.json (https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/basics/add-an-external-library)
- Load SharePoint JSOM in the code (following the example from Microsoft's repo: https://github.com/SharePoint/sp-dev-fx-webparts/blob/dev/samples/knockout-taxonomy/src/webparts/termSetRequester/data-helpers/DataHelperSP.ts, even the example webpart doesn't work on a Team Site page as well)
Both of them couldn't get taxonomy data on a Team Site homepage.
Is there anyone that has done this before? Or has any workaround idea for this situation?