SPFx
113 TopicsSharePoint loading blank page; Modern SharePoint sites not loading with error
Our users have been having quite a few issues off-late on SharePoint online. We are on Office 365 and use SharePoint online. We are on first release too. 1) SharePoint loads a blank page <tenant-name>.sharepoint.com/_layouts/15/sharepoint.aspx <- this site It loads absolutely blank page. no error. no nothing. this happens with a few users. not sure how many yet. 2) SharePoint modern sites dont load. Some do. Some don't. I haven't been able to identify any pattern. Again quite a lot of users affected. Not sure how many. Every time we navigate to any of the modern sites we get the follow error. Sorry, something went wrong 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. TECHNICAL DETAILS Error details: Error: SPFx loader is not present in the page. This issue has been very random. It works one day then it doesn't another. It works in morning then it doesn't in evening. Weird. Currently, I am facing this issue for a few days now. :( I have also raised this as a ticket with Microsoft, but the agent wanted me to download a log keeper app then run the app and make logs etc. Honestly, I was not comfortable to do so and also, don't think I have the time and knowledge of understanding that. It seemed like a big process I had to run. On TechCommunity, I have only seen one or two threads about which are hardly concluding anything. Googling got me a few links on StackOverflow and Reddit etc., but no real solution in any of them. Is there anyone who can help with this? Also, if you know someone from Microsoft who is active here, who can help, then please tag them. Thanks!59KViews1like13CommentsSPFx Web parts - checking user permissions or user is in a group
Hi all, Can anyone point me in the direction of any good samples which cover checking if a user is in a given security group or if a user has a defined set of permissions to access a resource? We have a SharePoint Framework SPFx web part (using REACT) which we need to alter the display of based on whether or not the current user is either a member of specific security group(s) or the user has defined permissions to a given subweb. The defined security groups or subweb's would be configured via the property pane. In this particular case, using search to power the content and provide the security trimming isn't an option. Thanks for any advice. Pete.25KViews0likes2CommentsSharePoint Online not respecting target="_blank" anymore?
Hi, I have custom spfx webparts that have links in them which the users wish to be opened in a new tab when clicked. This was achieved using the typical target="blank" parameter, but just over the last week SharePoint modern pages now open these links in the same tab (previously they were opening in new tab as expected). I have tried this with a anchors, and also using the Office Fabric Link component - same result. Anyone know why, and how I can get these links to open in a new tab? Also worth noting that the links to lists and libraries off the Site Contents page still open in a new tab - can I replicate this behaviour somehow?? Thanks!Solved20KViews1like6CommentsSpFx 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.17KViews0likes5CommentsSPFX webpart not added to site after deployment
I have developed a SPFx WebPart using react. When packaging this solution, I use the following commands: gulp clean gulp bundle --ship gulp package-solution --ship FYI, I'm using these options in my package-solution.json file: "skipFeatureDeployment": true, "includeClientSideAssets": true, "isDomainIsolated": true, It's worth noting, I've tried both with tenant deployment (skipFeatureDeployment = true/false) and without, same issue. If I don't deploy it to the tenant, adding it to the site shows success but really fails behind the scene as it's no longer "added" after a refresh. This successfully creates my .sppkg file. No errors. I then upload the package to my SharePoint sites App Catalog in SharePoint Online (365), successfully, with no errors, then choose deploy, in this case to all sites. The app in the catalog displays as enabled, valid, deployed and tenant deployed. However, the app does NOT show up in my site contents. The app does NOT show up in "My apps" for the site. The app does NOT show up in the WebPart picker of a page. If I create a simple helloworld app scaffolded from yo, it works as expected. So there is something about this app it does NOT like. Where can I track down the logs or other data that would indicate why this app is failing silently and giving me no visual indication there is a problem during deployment? It may also be worth noting that this app WAS working last week when I first deployed it. However, I deleted the app from the catalog and re-deployed several times testing different settings. Now I can't get it to show at all.Solved10KViews0likes1CommentSharePoint Admin Center redirecting to SPFx Single Sign On Redirect Page
Hello, I've got an issue currently open with Microsoft Support however they're so far have been unable to resolve why I am being redirected to the SPFx Single Sign On Redirect Page when trying to access https://tenantname-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/home or https://admin.microsoft.com/sharepoint I am automatically taken to this page: https://mytenant-admin.sharepoint.com/_forms/spfxsinglesignon.aspx#code=0.AS8AW0bSmouaik6V_eHePuABYHaI4Qh3YX5IuLXPlQweWYwvABo.AgABAAIAAAAmoFfGtYxvRrNriQdPKIZ-AgDs_wUA9P_WluBbcSJB8cYbx71lqqyGHXDLsQVhhZcLagG1nJVuzJmvdXqmMvfZLcR57oq4kV22VhbPOWpKyp9ABUF4tm7Pxs5I5_B3BPsDOD4QiS0VqO6gwAwQYNUc9pOjEloq0Bz1B1ZHnQMm-hG4V_82qj9O8Hx6rJ8JSpA9fBzhz51tsPClPQOBVpBU1fns_9bkraWscTBJnOlDTJv5hBrN1q6Fg7wqj5B2C9xdYCFBvb-VtaDifKLGrfvMUcnQ65q4QdOUogXsMT-jRVEQiLtMlqRb577n2BH0AQNrgAAOx2O4mlaICP0zryw6Gq3gZwnn8nCieusQ_zUqDUENaF9EDovxLvq-VDkNy7FUKU3lOlXqOE-j89oez7Wxpe-811wJUKVwv4nyeymNTqs4K7e1BHR-15iECb40bI65TvjzKSS-Zz9qBLu2c8vDxq18snuqpyhO_JxUIC7ya4qysOl1kexTqBjINizSrb7s94PXXJAzVBT_XuCZDPK2YaOewowrpPPzcV5d7M_HgezHDGI6_8YPZOI4SfKDWAQ4hN02LiexG71z3OtzUt1pPMErBVjzDMC1NGdNspu4f9JPAIjdBlYRbHRB0mt1HsbmJiVmbUpSDgoqz0VIBPeh_zVfhFp8Yv8qGBut6mbOCgG9IYppfX3K5j9hsEUYhKDpdSPSxcGuW2JfoOI6kD222eZ9WRyVip9WyAndCzO0yKp48op3z_5_NnqfVEWZEW4vNOkB3TZF3n8SI2OEu6eYODGjyZBKikhnMQ6o72PpO9V8lFQKejK_3-ll-Znh4nDpjkjoix8FCzAsLRydrV0I-4Zb2U4aTRDc7Z4ZkAUKyHHFjO_cIeMrw_mYmRmzF6SOsTX5cbwLcyukQiT-a9WLBg0UVQNkuQB0gruCANYYlP4d-aElOvODltEP&client_info=eyJ1aWQiOiI0MTljN2FhNS1hMzlmLTQwZGEtODQxZi02MDQ4OTA1YzliYzYiLCJ1dGlkIjoiOWFkMjQ2NWItOWE4Yi00ZThhLTk1ZmQtZTFkZTNlZTAwMTYwIn0&state=eyJpZCI6IjhhNjM0ZGQwLWYxYTgtNGE4NC1iNGQwLTcwNzAwYWQ1ODE4YyIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0%3d%7chttps%3a%2f%2fmytenant-admin.sharepoint.com%2f_layouts%2f15%2fonline%2fAdminHome.aspx%23%2fhome&session_state=3eeb8686-6f12-44cd-8159-1bb6ccf45bdb&correlation_id=5318a330-f909-411b-b997-a203bf473edb Any clue on what could be causing this as it only appears to be happening with my admin account. All other admins who have the SharePoint Admin role are able to traverse to the SharePoint Admin Center correctly. and Yes, I've tried this on 4 different browsers and several different computers - all resulting in the same issue.9.4KViews1like9CommentsRules in config/tslint.json file of SPFx scaffolding are being ignored.
I ran the current Yeoman SharePoint generator, and got the following ts-lint file in the config directory (with a few minor tweaks added). From what I can tell the trailing-comma rule should be disabled (it's set to false), but it's not. I'm still getting red squigglies when I don't have a trailing comma (see below). That's just one example of a number of tslint scaffolding rules that appear to be ignored. What am I missing? Thanks! :-) (I have also posted https://sharepoint.stackexchange.com/questions/235288/how-do-i-disable-trailing-comma-tslint-rule-in-spfx-scaffolding.) "$schema": "https://dev.office.com/json-schemas/core-build/tslint.schema.json", // Display errors as warnings "displayAsWarning": true, // The TSLint task may have been configured with several custom lint rules // before this config file is read (for example lint rules from the tslint-microsoft-contrib // project). If true, this flag will deactivate any of these rules. "removeExistingRules": true, // When true, the TSLint task is configured with some default TSLint "rules.": "useDefaultConfigAsBase": false, // Since removeExistingRules=true and useDefaultConfigAsBase=false, there will be no lint rules // which are active, other than the list of rules below. "lintConfig": { // Opt-in to Lint rules which help to eliminate bugs in JavaScript "rules": { "class-name": false, "export-name": false, "forin": false, "label-position": false, "member-access": true, "no-arg": false, "no-console": false, "no-construct": false, // "no-duplicate-switch-case": true, "no-duplicate-variable": true, "no-eval": false, "no-function-expression": true, "no-internal-module": true, "no-shadowed-variable": true, "no-switch-case-fall-through": true, "no-unnecessary-semicolons": true, "no-unused-expression": true, "no-use-before-declare": true, "no-with-statement": true, "semicolon": true, "trailing-comma": false, "typedef": false, "typedef-whitespace": false, "use-named-parameter": true, "typeof-compare": true, "variable-name": false, "whitespace": false } } }Solved6.2KViews0likes1Comment