SPFx
70 TopicsSharePoint2016 On Prem -SPFx HelloWorld App can’t add to site ” You can't add this app here”
I am facing issue while development and/or deploy SPfx HelloWorld app. I was able to deployed to App Catalog but could not able to add on page, because its say ” You can't add this app here” Current Environment: Sharepoint 2016 on-prem Install Feature Pack 2 Do I need to set-up app domain on on-prem to work with SPFx solutions? Thanks Deepak1KViews2likes0CommentsSharePoint 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 18.2 gulp serve issues
I have recently updated a number of modern spfx webparts to spfx 18.2 and this morning when I try to debug in workbench (locally and on tenant) I am getting serve errors in relation to react and react-dom I am able to serve projects not using react successfully but when using spfx 18.2 but not react 16.8.4 - has anybody else encountered this issue. I have restored to previous code backup, as well as restoring to previous days last git commit neither had a positive effect. I get no errors in terminal but workbench shows the following message: SPLoaderError.loadComponentError]: ***Failed to load component "174429f3-8ff8-4143-8f12-7c398d264e9a" (FusionWebPartWebPart). Original error: ***Failed to load URL 'https://localhost:4321/node_modules/react/dist/react.js' for resource 'react' in component '174429f3-8ff8-4143-8f12-7c398d264e9a' (FusionWebPartWebPart). The file was not found in the server. Make sure that you are running 'gulp serve'. ***INNERERROR: ***Failed to load URL 'https://localhost:4321/node_modules/react/dist/react.js' for resource 'react' in component '174429f3-8ff8-4143-8f12-7c398d264e9a' (FusionWebPartWebPart). The file was not found in the server. Make sure that you are running 'gulp serve'. ***CALLSTACK: Error at SPLoaderError.SPError [as constructor] (https://localhost:4321/temp/workbench-packages/@microsoft_sp-loader/dist/sp-loader-assembly_default.js:8390:24) at new SPLoaderError (https://localhost:4321/temp/workbench-packages/@microsoft_sp-loader/dist/sp-loader-assembly_default.js:4036:28) at Function.ErrorBuilder.buildErrorWithVerboseLog (https://localhost:4321/temp/workbench-packages/@microsoft_sp-loader/dist/sp-loader-assembly_default.js:3789:21) at Function.ErrorBuilder.buildLoadComponentError (https://localhost:4321/temp/workbench-packages/@microsoft_sp-loader/dist/sp-loader-assembly_default.js:3697:21) at https://localhost:4321/temp/workbench-packages/@microsoft_sp-loader/dist/sp-loader-assembly_default.js:6275:47 Vesa Juvonen4.9KViews1like2CommentsUsing the Beta endpoint in @pnp/graph in a SPFx web part
I can't seem to find any examples or documentation on using the Beta endpoint in the @pnp/graph library. It seems there is some configuration involved looking at this PR (https://github.com/pnp/pnpjs/pull/35/commits/78995321ba4beac3a2f46e5e0b4740e541e65e80), but I can't figure out how to implement that during graph.me.get(). I need the Beta endpoint to retrieve a user's extensionAttributes. Thank you!1.1KViews1like0CommentsAdd SPFx based outlook add-in in Office Store
We have created an outlook add-in application using SPFX. Now we want to put this application with SPPKG in the Microsoft office 365 store as an outlook add-in. We are stuck as we have not found a convenient method. Is there any standard way of doing this? Thanks, Gaurav Goyal783Views1like0CommentsSPFX webpart not rendering data untill browser console is opened
Hi, For a customer we have been asked to make a webpart that can list all the current subsites for the site that a user is on. This was asked to be done using react "DetailList". I am not super familiar with react and while testing my webpart, I noticed that the data did not get rendered or fetched unless I opened the browser console. When I run the webpart a lot of 'requests' are done and my webpart renders the basics, but some requests only get done when I open my console. Only on the moment that I open my browser console, do all the subsites get rendered inside the DetailList. I will include some of the code I wrote to show as to what we did, but is there someone that can verify what causes this behavior, or can tell me how to fetch the data properly to render inside the Detaillist webpart first I pass my httpclient and siteurl to the TSX file by giving it in the react.createElement after that in the constructor of the TSX file, I put the code that will define the state of the component (I know after doing more research that this is not hte best method to do it but I followed an example :) ) the code that is done in the renderlistasync method to give you an example of what happens inside the method ( it was a lot shorter but I experimented a lot to try and find a solution ) when I run my webpart, this is the output that I get when adding the webpart to my workbench on sharepoint Notice the last request that was performed (highlighted in red) now as you can see the in the following picture, the subsites of the current page are not shown inside the webpart Now when I open my browser console, there are 2 new requests that get done : and the webpart suddently gets all the subsites from the current site that the workbench is on. now is there anyone that can explain what is going on here and how I can fix this behavior ? I´ve read about componentDidMount but don´t know for sure if this will fix everything.3.2KViews1like1CommentHow do I upgrade my project to SPFx Generator 1.4.0 ?
Hi I have a number of SPFx projects built using the SPFx generator 1.3.4 or before. Is there any guidance how I upgrade these projects to the SPFx generator 1.4.0 as I am especially interested in the deploying all of the files (JSON, javascript) to the .sppkg file and hence to the Office365CDN. If I create a new project using the SPFx generator v1.4.0 what files do I need to copy across to the new project from the 1.3.4 version of the project ? Thanks NigelSolved3.6KViews1like2Comments