Questions tagged [spfx-webparts]
Technical questions about building and using web parts based on the SharePoint Framework client-side development model.
1,310 questions
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 ...
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-...
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 ...
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?
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 ...
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 ...
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 "...
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 ...
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 ...
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 ...
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 ...
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-...
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 ...
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?
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 ...
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
...
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 ...
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
...
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:-
...
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 ...
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
...
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 "...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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&...
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 ...
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 ...
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 "*...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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/...
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 = () => {
...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...