spfx webpart
5 TopicsWebsite Analytics For Modern SharePoint Site
I am trying to create a simple webpart that can be added to the bottom of a page and will insert the HTML <script> tag to add analytics to a page. I don't want to implement it across the entire tenant or even across all pages of a site. I want to control which specific pages are tracked. I created a simple SPFX webpart that inserts the <script> tag into the page. When I check the page source code, the <script> tag is there but it doesn't seem to be firing. The analytics platform isn't showing results and it isn't registering that the JS has been run. I verified with the SP admin that users are allowed to run custom scripts on self-service sites. Any ideas why this is happening?2.2KViews0likes5CommentsHow to get Sharepoint online folder default properties using pnpjs library
Hello, Please I am trying to get the default folder properties from sharepoint document library. Attached are some of the properties that i could get but there are other properties I would like to retrieve, i.e. The image thumbnail, FileRef, FSObjType, FileLeafRef, ServerRelativeUrl, Folder.. etc. Below is my code:2.6KViews0likes1CommentSpFx Helloworld webpart does not show up under modern Page toolbox
Expected or Desired Behavior Upon installation of the app, i can add the webpart to the pages as well Observed Behavior After adding app ,i try to add the app to my page, the app is not showing up in the list of the available apps. Steps to reproduce Follow the steps mention in https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-hello-world-web-part and created simple helloworld web part Add the .sppkg file in appcatalog and add the app in site Expected behavior After adding app in site, I should able to add the web part on page. Environment details I have two tenants, on test tenant I don't face any issue it is working perfectly fine. But on Production tenant I am facing this issue Your Developer Environment: - Windows 10 Target Environment: SharePoint Online Framework: Node.js v10 Browser(s): Chrome v79 Tooling: VS Code Additional context I am trying to add Modern Script Editor web part from https://medium.com/niftit-sharepoint-blog/add-the-script-editor-webpart-back-to-sharepoint-modern-experience-688a7b7208e4blog but I cant add it on production as I can not see it in web part list after deployment,so I am trying to deploy the simple Helloworld WebPart but I cannot see it as well in web part list on Production Tenant. On Test tenant everything is working fine. Note : I have admin account with admin access. In Past I have deployed SPFX Extension and it worked very well Thanks for your contribution! Sharing is caring.17KViews0likes5CommentsSharePoint Framework webpart error: applicationFailedToInitializeError
Hi, I'm new in SharePoint Framework webpart development and I have an error If I deploy the new webpart to the SharePoint Online and add the webpart to the page. (If I debug the webpart its work good) Error: Can't load the application on this page. Use the browser Back button to retry. If the problem persists, contact the administrator of the site and give them the information in Technical Details. Error details: Error: applicationFailedToInitializeError Please help! Thanks, Mykie1.4KViews0likes2Comments