Questions tagged [spfx-webparts]

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

The SharePoint Framework is a Page and Part model that enables client-side development for building SharePoint experiences, which is built by Microsoft's SharePoint product engineering team and community contributors, and hosted on GitHub. It facilitates easy integration with SharePoint data, and provides support for open source tooling development. If you have technical questions about web parts built with the SharePoint Framework, Microsoft monitors this tag on SharePoint StackExchange.

1279 questions
16
votes
1 answer

SPFx gulp package-solution fails

Running all @microsoft/sp-* packages @1.3.4 When I run gulp package-solution --ship, I get the following error message: Error - Error: The webparts manifests list is empty. Please ensure you have done a build and that your config file is pointed at…
stackleit
  • 675
  • 1
  • 6
  • 13
5
votes
1 answer

"Either Guest user or Cortex is not enabled!" on SP page

I get this error: "Either Guest user or Cortex is not enabled!" in the browser's developer console when I run my published webpart. It first appeared around October 26th 2022. The error type is "unhandledrejection". When I run it on the workbench…
Vincent Gagnon
  • 151
  • 1
  • 3
4
votes
1 answer

jquery not loaded with SPF

I have this on my config.json { "entries": [ { "entry": "./lib/webparts/pnpcrudsample/PnpcrudsampleWebPart.js", "manifest": "./src/webparts/pnpcrudsample/PnpcrudsampleWebPart.manifest.json", "outputPath":…
Luis Valencia
  • 5,201
  • 22
  • 118
  • 219
3
votes
1 answer

"[serve] The api entry could not be loaded" in SharePoint Framework(SPFX)

SPFX webpart created successfully but when I run gulp serve command I get error. Error : [serve] The api entry could not be loaded: node_modules/@microsoft/sp-webpart-workbench/lib/api/ -- Node.js command prompt out put [12:19:56] Starting…
Chandresh
  • 499
  • 2
  • 8
  • 16
2
votes
1 answer

How will SPFx on SharePoint-Online detect the language

Regional Settings in related SharePoint-Site? -- What about alternate activated languages? -- What about preferred language setting in user profile? So, who will win when opening a page with a localized SPFx-WebPart?
Ronny
  • 95
  • 1
  • 12
2
votes
0 answers

include feature.xml in spfx webpart

The DOcs at https://dev.office.com/sharepoint/docs/spfx/web-parts/basics/notes-on-solution-packaging say that I can include a feature.xml with my spfx webpart to have sharepoint resources provisioned for a webpart. They dont spell out clearly how to…
RussGove
  • 1,254
  • 1
  • 17
  • 24
1
vote
1 answer

SPFx package with app catalog metadata

Is it possible to create an SPFx package (.sppkg) that includes properties to populate the app catalog when it is uploaded? I'd like to include the Icon URL, description, support URL, etc. Right now, the only way I can see is to manually populate…
Ivan Wilson
  • 310
  • 3
  • 15
1
vote
1 answer

SPFX created New project paste developed code reveals GET error

I have developed a webpart to get list of news title and data. I wanted to change the name shown in sharepoint thus I created another project a web-part with react. yo@ microsoft/sharepoint gulp serve to check localhost and online workbench…
Random I.T
  • 113
  • 1
  • 11
1
vote
0 answers

How to Render Modern Search Web part Results in Tabular format with additional metadata columns that allows to sort the results

I am using Modern Search Webpart with custom template to display the results in tabular format with additonal managed properties, which works fine. How can I make headers to act as Sortable fields, so that when user clicks on header column, it…
1
vote
4 answers

function to retrieve the list item based on todays date

private _getListData(): Promise { Date.prototype.addDays = function(days) { var Date = new Date(this.valueOf()); Date.setDate(Date.getDate() + days); return Date; }; var today = new Date(); var Startdate =…
Selvin
  • 41
  • 5
1
vote
1 answer

To retrieve a single list item by using current date or todays date

private _getListData(): Promise { Date.prototype.addDays = function(days) { var Date = new Date(this.valueOf()); Date.setDate(Date.getDate() + days); return Date; } var today = new Date(); var Startdate =…
Selvin
  • 41
  • 5
1
vote
3 answers

To retrieve a single list item by using current date

I have created a list, and the list has many items. I have to retrieve a single list item based on current date. I would appreciate if some one could help me how to retrieve that particular item from the list, using current or today's date using…
Selvin
  • 41
  • 5
1
vote
1 answer

Create SPFx webpart based on existing webpart (Text)

Is there a way to create an SPFx webpart that extends or is otherwise based on an existing built-in webpart? In particular, I want to create a text editor using the default "Text" webpart. I would like to use the built-in functionality, not mimic…
hamboy
  • 511
  • 3
  • 8
1
vote
0 answers

MSGrapClient request credentials on purpose

Is there a special way to ask a user for credentials when my app is initializing. For example, the app consists of several stages and at the 3-rd stage a user send ms graph request and if he's not authenticated he will be redirected and lose the…
1
vote
0 answers

How to get values in textbox in webaprt in spfx

I want to display my values of sharepoint list not in a table but in respective textboxes in my web part. How can we do this in spfx(on-prem)?
Deeksha Gupta
  • 23
  • 1
  • 8
1
2 3