Skip to main content

Questions tagged [spfx-webparts]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

Determine programatically whether user has been granted EDIT access to a library item

I'm sure I'm asking the question wrong, but I've been all over the net on this one. Hoping someone here can help. I'm building an editor SPA. Documents get uploaded, MS Flow takes over and ...
quest4truth's user avatar
0 votes
0 answers
14 views

SPFx development on sharepoint 2019 on premise

I am new to SPFx development , Could You help me how to bootstrap a project for Sharepoint 2019 on premise. I followed step from here : https://www.voitanos.io/blog/definitive-guide-sharepoint-...
Arpit Pathak's user avatar
0 votes
2 answers
25 views

SPFx package-solution errors inexplicably

I have developed a full-page webpart that provides the user with an intuitive interface for managing SharePoint groups. I have used the same toolkit to build other full-page webparts. When I run the ...
Paul Rowe's user avatar
  • 168
0 votes
0 answers
25 views

SharePoint Copilot Search/Azure AI Search Integration

I want to upgrade the existing SharePoint's Out of box search with Microsoft Copilot Search or Azure AI Search to enhance the user experience using SPFx. Is there a way to accomplish this?
Aparna Sunil's user avatar
0 votes
1 answer
25 views

Embed the whole sharePoint site in MS Teams Tab

Is it possible to still embed SharePoint site in Microsoft Teams? I was able to do this before by using this team apps - SharePoint and Website I tried both and they are not working anymore. It seems ...
naijacoder's user avatar
  • 4,326
1 vote
2 answers
90 views

While gulp serve and gulp bundle getting the webpack error

I am trying to gulp serve my webpart but ending up with webpack issue. Error - [webpack] Error processing webpack stats: TypeError: Cannot read property 'toJson' of undefined Error - [webpack] Webpack ...
striker92's user avatar
  • 159
2 votes
1 answer
203 views

Argument of type 'null' is not assignable to parameter of type

I have been working on this modern carousel which i found from this reference https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-modern-carousel But then i come across this issue "...
striker92's user avatar
  • 159
0 votes
0 answers
23 views

Identify Legacy Sites and Web Parts using PnP

In light of Microsoft disabling support for custom scripts and attempting to move everyone from classic pages to modern pages. How can someone search through their SP sites to find sites that are at ...
Beta Chad's user avatar
1 vote
1 answer
40 views

SharePoint framework for list viewing / editing

I'm looking to build a SharePoint online page that can point to a separate list and give the user the possibility to search, view and update list items within its own UI. Is there a prebuilt template ...
Dustin Morgan's user avatar
0 votes
2 answers
52 views

Webparts Permission for SharePoint Online

I have created sites and subsite for a intranet using sharepoint online and would like some of the users to only update properties of the webpart or the content it holds and not delete or add. How can ...
Wajeeh Hasan's user avatar
1 vote
1 answer
50 views

Get the Group Name if current logged in user is in an Active Directory Group residing in a SharePoint Group?

I have a requirement to get the current logged in user's group in SharePoint Online. The current logged in user is in an Active Directory Group residing in a SharePoint Group. When I am using the Rest ...
Kumar Utkarsh's user avatar
0 votes
0 answers
13 views

How to paint SharePoint components of a news detail obtained by api on a web page external to SharePoint?

How to paint SharePoint components of a news detail obtained by api (divs with "data-sp-*" attributes and webparts) on a web page external to SharePoint. Example: <div> <div data-sp-...
Aitor García's user avatar
1 vote
0 answers
91 views

Missing Approved requests - Broken API Access

I am a developer, and we are currently developing an application. Recently, we added new API permissions in SPFx. After accepting the permissions and refreshing the page, almost all permissions were ...
Sławomir Bąk's user avatar
0 votes
0 answers
14 views

LESS files in SPFx

I want to use .less files in SPFx but did not find any official documentation for same. Is it really possible to use .less files in SPFx solutions?
Harminder Singh's user avatar
1 vote
1 answer
263 views

What version of node to develop spfx

I see some questions like this from several years ago, but this question is a little different and I wonder how things are supposed to work now. We work in a enterprise setting where we can only ...
Rothrock's user avatar
  • 3,063
0 votes
1 answer
145 views

Building webpart with custom property pane controls using @fluentui/react not working as expected (SPFx 1.19.0)

I was following the below tutorial to build custom property pane controls. https://learn.microsoft.com/en-us/training/modules/sharepoint-spfx-web-part-property-pane/5-exercise-build-custom-controls ...
Jefin Mathew's user avatar
1 vote
1 answer
100 views

gulp package-solution --ship will raise this error "Error - [package-solution] No manifests were found in 'C:/SPFX/release/manifests'. ."

I have build an SPFx web part named AutoRefresh which does not use a javascript framework, then i tried to run those commands:- gulp clean gulp build gulp bundle --ship gulp package-solution --ship ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
92 views

'PropertyPaneCustomField' is missing from '@microsoft/sp-property-pane' - SPFx 1.19.0

I was following the below article to create custom property pane fields. https://learn.microsoft.com/en-us/training/modules/sharepoint-spfx-web-part-property-pane/4-build-custom-property-pane-controls ...
Jefin Mathew's user avatar
0 votes
2 answers
47 views

Unable to build my SPfx, error @microsoft/sharepoint Command failed with exit code 1: npm install

I want to build an SPFX, i did the following steps:- 1)Inside c: i created a folder name SPFx 2)inside node.js i have this :- 3)I run this command:- yo @microsoft/sharepoint but i got this error:- ...
microsoftdeveloperdesigner's user avatar
0 votes
0 answers
28 views

Live Persona Card Custom Properties

Can I change the live persona card properties i.e., Custom Name, department etc. Currently it always showing against mail given in user object. I also use static display name in user object but it's ...
Hassan Nawaz's user avatar
1 vote
1 answer
44 views

What is the difference between 'loadSPFX=true' vs 'debug=true' query string parameter in debugging SPFx webpart

In SharePoint documentation (Link), it is specified to use the below query string for debugging the webpart in a page, ?loadSPFX=true&debugManifestsFile=https://localhost:4321/temp/manifests.js ...
Jefin Mathew's user avatar
0 votes
1 answer
232 views

Welcome Banner for Users

I have recently created a SharePoint homepage for my company that acts as an intranet point of entry. I would really like to create a welcome banner at the top of the homepage that simply says "...
Leanna Ross's user avatar
0 votes
0 answers
65 views

SPFX Library - React Content Query Online

The official sample React Content Query Online stops working on Sharepoint Online. https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-content-query-online I got a generic error: Any ...
rockxl1's user avatar
  • 43
0 votes
0 answers
8 views

PnP Charts datapromise error

Im getting this error with the datapromise for a PnP chart this is the delaration of the chart And this is the method thats being called private _loadAsynData1():Promise<ChartData> { return ...
Chris McCarthy's user avatar
0 votes
1 answer
166 views

SPFx: Open SharePoint List Form from Custom Page

Here's a rephrased version of your message: I have created a custom SharePoint page using SPFx that displays data from a SharePoint list. I want users to be able to click on any item to open the list ...
Urwah Umer's user avatar
0 votes
0 answers
38 views

Where can the “Did you forget to signal completion?” error come from?

As described in the title, I have the error “Did you forget to signal async completion?”. About my project: I am working on a web part with React that should display a Kudo website. And now I have ...
newInCoding's user avatar
0 votes
0 answers
145 views

All SPFX Web Parts showing Something Went Wrong (Script Error)

I am trying to develop custom SPFX web parts for a Sharepoint site, and all of a sudden all of my web parts stopped working. When putting any of them in a site, it just shows Something went wrong If ...
Cade Fowler's user avatar
0 votes
0 answers
108 views

SPFx Webpart to retrieve term store terms

I am working on a simple SPFx webpart with minimal framework (no react), to retrieve terms from the term store. I am following the instructions from the PnP site but running into an issue I cannot ...
Robbert's user avatar
  • 196
0 votes
1 answer
283 views

Upgrade SPFx webpart to specific node version

I have one old SPFx react webpart created in Node version 10.18.1. Now I have install node version 18.19.0 How can I Upgrade my old SPFx react webpart into new node version 18.19.0?
Chandresh's user avatar
  • 519
0 votes
2 answers
59 views

SharePoint Framework on SharePoint Server 2019

Which node and which gulp, yo and so on I should install before developing SharePoint Framework on SharePoint 2019 server. I tried node 11.15. and now I'm try to fight with node 12.22.12 and I can't ...
Grzegorz Z's user avatar
  • 1,713
0 votes
1 answer
159 views

How to add a filter query to see specific email addresses in Search Results of PnP Modern Search?

I already extracted employees belong to specific Departments by using this query which I added to Query Template inside Search Results of PnP Modern Search: {searchTerms} Department:"Accounting&...
Nihad Huseynov's user avatar
0 votes
1 answer
303 views

Preventing my Sharepoint Online WebPart from being cache

I got a SPFX WebPart for Sharepoint online that seems to be working fine, but now we notice that when i deploy a update some of the users keep getting the old versions, and hard refresh does not ...
rread's user avatar
  • 11
0 votes
0 answers
23 views

Why aren't my files uploading properly?

I've written a 'File Upload' button for my spfx app, and it appears to work, but the file isn't being uploaded properly. The user sees a form which allows them to select a file (from their PC), and ...
Sharon's user avatar
  • 101
0 votes
1 answer
41 views

Difference between display of webpart in page in edit mode and page in publication

Hello i deployed my webpart on Sharepoint Online on a page and i see a difference in display between edit mode and published page. The webpart contain a scss that i use thanks to declare module "*...
captainclito's user avatar
0 votes
0 answers
529 views

SPFx Cannot read properties of undefined (reading 'id') in web part using workbench

Each time I tried to launch my web part through the workbench I got this error, I don;t understand why.: Cannot read properties of undefined (reading 'id') PILE DES APPELS : TypeError: Cannot read ...
captainclito's user avatar
0 votes
0 answers
69 views

PnP modern search web parts custom

I want to add slider in search result where on button click I can get data from different list with help of lookup on that slider. I don't want to customize whole PnP modern search result webpart code ...
Rushil Modhia's user avatar
0 votes
1 answer
100 views

SPFx web parts missing in SharePoint 2019 modern sites

I'm trying to use an SPFx that contains some custom webparts on SharePoint 2019 (spfx-40-fantastics, you can find it in GitHub). After deploying the SPFx everything works fine on classic sites, I can ...
Med Achref's user avatar
0 votes
1 answer
140 views

What is the license for the SharePoint Framework (SPFx)?

I am working on a project that involves the SharePoint Framework (SPFx) for developing custom web parts and extensions. I would like to understand the licensing terms for using SPFx. Specifically, I ...
Ajay Mayani's user avatar
0 votes
0 answers
200 views

Managing and customising modern Event list/page - SharePoint Online

The Event List is one thing that is very confusing in SharePoint Online and I just need some other people views and ideas on this. My requirements I need to be able to add new fields to the event ...
naijacoder's user avatar
  • 4,326
0 votes
1 answer
276 views

Multilingual SharePoint Framework (SPFx) - switching language

I'm adding multilingual support to an existing webpart. Easy enough with the different locale string files and testing with the --locale pararmeter on gulp serve. What I don't understand though is ...
SteveCl's user avatar
  • 323
0 votes
1 answer
287 views

Is it possible to remove/disable News templates in SharePoint Online

I have a requirement and what i'm after is for users to be able to create a news post but i want them to use a specific template only and not to be able to use any of the other templates from ...
naijacoder's user avatar
  • 4,326
0 votes
0 answers
45 views

One WebPart not showing up in workbench while another shows up ok

I'm new to SPFX, and I'm trying to create a couple of web parts. I downloaded the Contoso Retail Demo and have basically cannibalised it to create what I need. The demo had multiple web parts in one ...
Sharon's user avatar
  • 101
0 votes
1 answer
77 views

is there any function to get document more than 5000 in spfx

I want filter data from list and then filter only 5000 data are coming but there is more than 50000 documents. Current code: import * as React from "react"; import "bootstrap/dist/css/...
Deepak Sharma's user avatar
0 votes
1 answer
1k views

Function lacks ending return statement and return type does not include 'undefined'

I am implementing an API that interacts with the SharePoint List, and retrieve the data collection. Somehow the interface does not return statement. private getCarouselListContent = () => { ...
striker92's user avatar
  • 159
0 votes
0 answers
178 views

How to display viva engage communities a user belongs to in SharePoint Online

I'm looking for a way to display viva engage communities a user belongs to in SharePoint Online. I know I can see that via MS Teams.But the OTTB viva engage web parts in SharePoint doesn't provide the ...
naijacoder's user avatar
  • 4,326
0 votes
0 answers
21 views

PnP JS - getShareLink is not working for PDF files

const result: IShareLinkResponse = await sp.web .getFolderByServerRelativePath(documentUrl) .getShareLink(sharingLinkKind); I am using this to generate shareable link with ...
Aaro Oral's user avatar
0 votes
1 answer
146 views

I need to make my SharePoint page more interactive

I'm new here. I'm working with SharePoint out of the box web parts and found out it is too basic with little customization. I need to make some web parts interactive but could not due to its ...
Adediji's user avatar
0 votes
0 answers
19 views

Does SPFx colors affect the SharePoint Site theme

I have SPFx extensions and webparts deployed in the sites and both framework uses the custom color built in the .sppkg package. And I have custom site theme installed using PowerShell. Does the SPFx ...
striker92's user avatar
  • 159
0 votes
0 answers
49 views

SPFX customFormatter

Is it possible to take the JSON of a customFormatter from a field info object and apply it when rendering a component? I would like to render choice fields as they are displayed in a list view. For ...
JJD's user avatar
  • 493
0 votes
0 answers
20 views

SharePoint workbench only works for some users

What exact permissions are required to use the workbench? (http://{tenant}.sharepoint.com/_layouts/15/workbench.aspx) I'm trying to test an SPFx app which involves multiple users. I created some dummy ...
quest4truth's user avatar

1
2 3 4 5
27