Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [spfx]

General technical questions about the SharePoint Framework client-side development model.

89
votes
6answers
8k views

SharePoint development past and “future”: how to keep calm?

I'll do my best to not turn this question to an "opinion-based" one, but it's a great effort for me! SharePoint 2003: the story begins In the beginning (SharePoint 2003), we could develop Web ...
26
votes
4answers
486 views

SPFx: Back to the future? (reloaded)

OK, following my previous post: I stepped back from this SharePoint forum for a few weeks. I tried to dig into the SPFx framework with a good faith. After all, add-ins were crappy (almost MS words),...
22
votes
4answers
3k views

Will the new SharePoint FrameWork increase speed?

I don't have a benchmark but it seems to me SharePoint Online is getting slower. This is a fresh new SPOnline Tenant, (News) images being pulled from a Picture Library Is it me or is this just super ...
20
votes
4answers
4k views

SPFx: loading jQuery (and other libraries)

The SharePoint Framework weather example loads jQuery inside the WebPart render method: https://www.youtube.com/watch?v=HGC9gsDRy1E#t=10m30 Questions: Is this the preferred development pattern? ...
11
votes
3answers
2k views

How does one pass parameters to SharePoint Framework Extensions in practice?

I am currently in the process of getting up to speed with SPFx and have gone through the Extensions Getting Started guide of the official documentation and skimmed a fair portion of the other ...
10
votes
5answers
2k views

Content Editor webpart Vs SPfx

I want to know what's the difference between using content editor webpart and sharepoint framework, aren't they going to do the same thing?
10
votes
2answers
2k views

Access the query string from SPFx web part using React

I'm rebuilding a SP 2013-era EditForm.aspx web part using SPFx & React. I would appreciate advice on how to get the query string into a SPFx web part. I don't see any methods in the SharePoint ...
10
votes
2answers
397 views

Can I bulk upgrade deployed SPFx web parts?

I created a SharePoint Framework web part and deployed the package to the App Catalog on my client's O365 tenancy. My client has added the web part to around 150 sites. I've since deployed a new ...
9
votes
3answers
405 views

Does an SPFx webpart run on Gulp or Node as web server?

Reading the SPFx documentation I find it difficult to understand which service/tool/framework handles requests as a web server. From documentation both Node and Gulp can be used as a web server during ...
8
votes
1answer
2k views

Options for elevating permissions in SharePoint Framework

Background I have a site which will have a number of Lists and a Document Library deployed as part of an SPFx application. The Document Library will have a folder hierarchy which must be strictly ...
8
votes
3answers
998 views

Run development and production versions of the SP Fx web parts in two different site collections?

Currently, the SharePoint Framework solutions are deployed as tenant wide app packages. Thereby, all instances of the web parts refer the JavaScript files from the CDN location specified in the ...
8
votes
1answer
1k views

Where is a list of modern SharePoint team sites

The normal classic Team sites once created are listed on https://tenant-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx Or a PowerShell command Get-SpSite lists all But now when ...
8
votes
1answer
232 views

Implement licensing in SpFx?

I have created 4 web parts using SPFX. Now I want implement licensing. If the user has purchase license then can access web part else user is redirected to license. What is the best approach to ...
8
votes
1answer
2k views

Is there any alternative of model-dialog available for SharePoint Modern Page?

I am currently working on SharePoint hosted app which has custom ribbon action in list & library. I have opened modal-dialog on ribbon action(HostWebDialog) but in SharePoint modern page it is ...
8
votes
0answers
925 views

SPFX Provision list with data

I am trying to use the SharePoint Framework to provision a list with some default data, I managed to get this working using the following elements.xml and custom schema.xml. This worked no problem ...
7
votes
4answers
1k views

What is SharePoint Spfx? Will it override SharePoint app development and server object model?

What will be impact of new Spfx development model over older SharePoint object model.
7
votes
2answers
4k views

SPFx - How to call function on button click event from ts file with React

How to call function from ".ts" file for button onClick event in tsx file? this is my function in ts file: public button_click(): void { alert("CLICKED!"); }
7
votes
1answer
1k views

Can't install app in AppCatalog

Trying to upload an app to a Sharepoint Online App Catalog. Getting the following error: xxxxxxxx.app Unknown Status Module: 33 Message: 134 It worked 4 days ago. The only thing that I have ...
7
votes
2answers
293 views

SPFx: disabling console traces (by SPFx libraries)

Am a big fan of the console, and apply it to the max (and I hate it, IE does not do colors in the console) My console looks like this: Now the SPFx output is cluttering up my precious console, with ...
7
votes
2answers
599 views

SPFx(On-Prem) - Property for single choice of Office-IU-Fabric - PeoplePicker

I need to use componen for SPFX webtpart v1.0.2 for On-Premise server and I want to choice only one person from Office-UI-Fabric - PeoplePicker component This is my HTML(.tsx) public render(): ...
7
votes
2answers
891 views

Using MS Graph from SharePoint Framework 1.5.1 / 1.6

Can someone, please help me with figuring out how to use MSGraphClient from the latest SPFx version? MSGraphClient is supposed to help us to use MS Graph. My problem is that as soon as I add the line ...
7
votes
1answer
223 views

SharePoint framework

https://dev.office.com/sharepoint/docs/spfx/sharepoint-framework-overview In this new Client Web Part model there would be no IFrames. It will be all cient side thing. My question is, where would ...
7
votes
1answer
208 views

How do I retrieve the SharePoint Modern site's classification property via search REST APIs?

I am creating a rollup of Modern team and communication sites that are provisioned in my tenant by creating one SPFx webpart which retrieves the site's title, URL, logo and some other properties using ...
6
votes
4answers
3k views

'gulp serve' command opens SharePoint Framework workbench in a blank screen

I'm trying to build a simple client-side web part using new SharePoint Framework with the help of OfficeDev Site. I've installed all the required components mentioned in OfficeDev After the ...
6
votes
3answers
7k views

Gulp serve error : Cannot find module '@microsoft/sp-build-web'

I am working on the SharePoint Framework Tutorial 1 for the Hello World Web Part. When running the build command gulp serve to build and preview the webpart I get the following error "Cannot find ...
6
votes
1answer
576 views

Calling external APIs securely from SharePoint Framework

I checked out the webcast 'Calling external APIs securely from SharePoint Framework'. Can that be used to call on-prem web-api without using azure? If I wanted to host a web-api on premise and call ...
6
votes
3answers
194 views

How to make client application secure in sharepoint

Considering sharepoint development is mostly moving to client side with JSOM, REST api exposed. Even in recent announcement we have Sharepoint framework based on Client side. With this I am assuming ...
6
votes
1answer
185 views

Where can I find the TypeScript source code of the SharePoint Framework?

Where can I find the TypeScript source code of the SharePoint Framework? With Microsoft being more open and generally providing everything as open source nowadays I expected to find it pretty quickly....
6
votes
2answers
2k views

SPFx - Cannot find type definition file for 'es6-collections'

I am trying to create a solution which will deploy the assets to SP online by following tutorial. Since this is based on version 1.4.0 i have udpated @microsoft-* packages to 1.4.0 But I am getting ...
6
votes
1answer
143 views

Is it possible to deal with Enterprise Keywords using SPFx?

first up big ups to You SPFx guys supporting and building our future :-) I am just returning after 5 years IT break, and I am impressed :-) I am currently evaluating the options for UI platforms to ...
6
votes
1answer
520 views

Update list in SharePoint framework - SPFx app

i have created list and columns in SPFx app using elemets.xml and schema.xml. Now after doing this i want to add new column to already created list. I have created elements-v2.xml and upgrade-actions-...
5
votes
2answers
3k views

SharePoint Framework – Loading Font Awesome CSS from CDN

I am fairly new to the SharePoint Framework development stack (TS, React, node, etc.) and am looking to incorporate the font-awesome suite into my web-part via a CDN. Normally I would reference this ...
5
votes
5answers
2k views

SPFx: Is TypeScript compulsary for future SharePoint development?

Been looking into ways to keep a development team with medior JavaScript skills into the loop. Basically I just want a SPFx Content Editor WebPart where they can do anything they have done with ...
5
votes
3answers
858 views

In SPFx, do I use CSOM, REST or something else?

OK, we have got SharePoint framework now, but how do we access the data in SharePoint programmatically? What API do we use? Did Microsoft introduce any new API? And can we still use the CSOM and REST? ...
5
votes
3answers
3k views

SharePoint Framework web parts - dynamic properties pane

I was playing around with the SharePoint framework and I was trying to get the web part to load SharePoint lists via a promise. First I noticed that await and async are not supported (probably due to ...
5
votes
1answer
4k views

workbench page shows “This site can’t provide a secure connection” on creating SPFx Webpart

I am new to SPFx, tried to create simple webpart using SPFx. Referred from here. Followed these steps: -Installed nodejs -Installed gulp & yomen using npm install -g yo gulp in powershell. -...
5
votes
2answers
736 views

Reverse engineer TypeScript output back to source code?

Maintaining SharePoint solutions without access to source code can be time consuming. Especially if you have to extract a .wsp from a farm, rename it to .cab and start looking into output files as XML ...
5
votes
1answer
432 views

cant find module 'react-bootstrap'

I installed necessray packages npm i react-bootstrap-validation", "npm install react-bootstrap and updated typings npm update typings but still getting this error; How can I tell tyscript I ...
5
votes
3answers
509 views

Angular and spfx learning guide

I am getting started with spfx and i have no prior knowledge of angularjs/angular. Recently i saw a blog post that says to use angular element to develop webpart. Can you guys please guide me on ...
5
votes
2answers
763 views

Can I target an existing column with a Field Customizer extension in SharePoint Framework?

When creating a FieldCustomizer extension as per the examples given, the process creates a new Site Column to which the customizer applies. I want to create and deploy an extension that targets an ...
5
votes
1answer
266 views

trying to add office-ui-fabric-react in a yo generated spfx webpart causes error on build

I'm experiencing build errors when adding <TextField label='TextField with an icon' iconProps={ { iconName: 'Calendar' } } /> resulting with this error on gulp build Error - typescript ...
5
votes
3answers
5k views

SPX and Typescript - how to add references to SP.JS?

I am trying to start learning the typescript and sharepoint framework. What I have been having trouble with is how to add references to SharePoint js files such as sp.js? For example, what I am trying ...
5
votes
1answer
819 views

Error loading debug manifest script

How do you ensure loading unsafe scripts is allowed in IE11 and Microsoft Edge. I can do this in Google Chrome but not in the Microsoft browsers mentioned above. I get this error when loading the ...
5
votes
2answers
171 views

SPFX GA 1.0.0 conflict, won't compile anymore

Original title: sp-build-web upgrade conflict with components. See update. I have a docker container (with the waldekm/spfx image), and i updated @microsoft/sp-build-web to 1.0.1 as some article ...
5
votes
2answers
2k views

SharePoint Framework: How/where to save web part property pane values?

When building a SharePoint Framework web part - where are the property values of the property pane to be saved? With add-ins and their tool pane, the options are: let SharePoint do it, use a hidden ...
5
votes
2answers
2k views

How to get Termset using the new SharePoint framework SPFx

I am new to to Typescript, watched videos and created the sample application of client webpart using new SharePoint development framework. All sample application worked well, and using Rest Queries i ...
5
votes
1answer
245 views

Error: Cannot find module 'gulp-webserver'

While spinning up the SharePoint framework, getting the mentioned error instead of running the gulp task which I got scaffold from the Yeoman.
5
votes
2answers
355 views

Is Callouts available in SharePoint Framework

I have a classic SharePoint Add-in and I am trying to convert it into SharePoint framework Webpart. I am getting the following error Cannot read property 'getFromLaunchPointIfExists' of undefined ...
5
votes
1answer
1k views

SharePoint Framework: Client Webpart throwing error when testing through workbench

I am trying to develop my first SPFX client webpart. I followed the steps from https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/build-a-hello-world-web-part yo @microsoft/sharepoint ...
5
votes
3answers
2k views

Create List using SPFX

I am trying to create custom list using SharePoint Framework. I created a folder with name Assets under SharePoint folder and created a element.xml in the Assets and updated the package-solution.json ...