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-webparts]

Technical questions about building and using web parts based on the SharePoint Framework client-side development model.

1
vote
2answers
4k views

using bootstrap modals in SPFx webpart

This is the example referenced and I already imported required sources from cdn; after installed bootstrap("npm install --save bootstrap") I added the references. SampleWebPart.ts: export default ...
3
votes
1answer
534 views

How to Provision Workflows with SharePoint Framework

I'm shifting my development to SharePoint framework now and have met with this problem. How do I deploy/provision a workflow to SharePoint Online using SharePoint Framework Client Web part. I couldn'...
4
votes
2answers
7k views

How to retrieve pageContext in SPFx?

I'm following the second tutorial from the SharePoint Framework dev center: Connect to SharePoint It states that you can retrieve details from this.context.pageContext, however this is no longer the ...
1
vote
1answer
2k views

SPFx R.C. post method, SPHttpClient.configurations.v1 undefined exception

I am try to convert this old school example. It was drop 3, now I need to convert it to SPFx RC version; private createItem(): void { this.getListItemEntityTypeName() .then((...
24
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 ...
8
votes
1answer
631 views

Apps added to App Catalog not available for installation on other sites

I started with SPFx development recently. I packaged a client side web-part as a file helloworld-webpart.sppkg following Microsoft's tutorial. Then I uploaded it to my Apps Catalog site. Though it was ...
6
votes
1answer
2k views

SPFx Replacement for Script Editor Web Part

So I was having a play around with the new Modern Experience site pages and while it's pretty slick and looks great (as well as fixing the issues with container layouts being a royal pain to change ...
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 ...
4
votes
2answers
210 views

Add an SPFx WebPart from an SPFx Extension on a modern site

Within our product we have created an SPFx extension to show a navigation component on the top of our modern pages. Additional to this navigation component we want to show a button which opens an ...
1
vote
1answer
969 views

(spfx) 'SPHttpClientConfiguration' is not assignable to to parameter of type 'SPHttpClientConfiguration'

I've been fiddling around with this issue for some hours. Here's my dependencies: "dependencies": { "@microsoft/sp-core-library": "~1.1.0", "@microsoft/sp-http": "^0.1.2", "@microsoft/sp-...
8
votes
3answers
1k 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 ...
6
votes
1answer
537 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-...
4
votes
4answers
315 views

SharePoint Framework web parts - do you need a developer tenant?

I want to test my SharePoint Framework web part in Office 365, in SharePoint Online. Therefore I upload the .sppkg file to the App Catalog. Unfortunately SharePoint says my app package is invalid: ...
4
votes
1answer
885 views

Using ADAL with SharePoint Framework

I've setup a web part with SharePoint framework that requires access to the Microsoft Graph for displaying the recently used files. I've followed the instruction here: https://github.com/SharePoint/...
3
votes
3answers
1k views

How I can upload a App from Sharepoint Framework?

I am trying to upload a app generate with SharePoint Framework to the App Catalog of my SharePoint, but when I upload it, it don't recognize how a valid package and I can't add this app to my ...
3
votes
1answer
430 views

Any Api's to get Last Opened Documents

Do we have any Apis to get the Last Opened Documents That is displayed in the the Office 365 Home Page. Intention is to get the list of the last opened Documents using SpFx webpart.
2
votes
2answers
476 views

Can a user update a SharePoint list using SPFx without the user having access to the list?

In C# you could allow users to access a SharePoint list they have no access to by using SPSecurity.RunWithElevatedPrivileges(delegate () .....etc. Is there a way achieving the same functionality ...
2
votes
2answers
765 views

Typescript errors in SharePoint Framework webparts

I created a new sharePoint framework webpart using the msdn link https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/build-a-hello-world-web-part After Executing the gulp serve ...
2
votes
1answer
312 views

SPFX - Target Audiences

what do you know about target audiences in Spfx modern pages or webparts? i have been searching information about this, but I'm still in blank. Thank you !
2
votes
2answers
234 views

SPFx Creating custom sectionlayout

Is it possible to create a modern UI section layout? e.g. a tab layout
1
vote
1answer
694 views

How can I implement Angular 2 routing in an SPFX webpart

How can I use Angular 2 in SPFX? I appreciate its not out of beta quite yet but I have found it to be excellent for 'larger' apps. Especially RC5 which provides a new ngModule decorator. Using this ...
1
vote
1answer
301 views

Error when displaying HelloWorld web part in tenant workbench

My HelloWorld web part works fine in my localhost workbench. On my tenant workbench, I can add the web part but then I get the attached error instead of displaying it.
1
vote
0answers
702 views

“setState(…): Can only update a mounted or mounting …” error in web part

I have a web part running works fine and I added new one. It only read items from the list. But before get there, there is an error in browser; "setState(...): Can only update a mounted or mounting ...
0
votes
3answers
1k views

getting current logged in user in SP list

I have made one webpart using spfx, on submit button its values are pushing in SP list but in SP list I want user who is currently logged in, its value should come in one of the field of Sp list, how ...
0
votes
1answer
82 views

Yeoman generator for WebPart can't find Github repo #spfx #spfx-webparts #spfx-tooling

I'm trying to create a new WebPart using the directions here. When I try to install the yeoman generator @microsoft/sharepoint it attempts to reference a github repository (microsoft/sharepoint) that ...
0
votes
1answer
2k views

Updating SPFX breaks gulp

So i tried installing a webpart from scratch & added React as a framework. All good, but the version of @microsoft dependencies is 1.5.1 AND the latest is actually 1.6.0. I've tried updating ...
0
votes
1answer
661 views

Angular 2 Routing in SharePoint Framework - SPFX

Using Angular.IO site's Routing example , I created a simple SPFX webpart with two components Dashboard and HeroDetails. When I try to run it through SharePoint site I see following error. Attaching ...