The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development, easy integration with SharePoint data, and support for open source tooling.
Questions tagged [spfx]
975 questions
2
votes
0 answers
Image cut off between two pages when export pdf using jspdf
I have created SPFx react functional component for export PDF.
I have used JSPDF for export pdf. When I tried to export the PDF images are cut off between two pages. Please refer to the below screenshot for better understanding.
Below is my code…

thedeepponkiya
- 97
- 1
- 11
2
votes
2 answers
How to configure a spfx extension at runtime like ENV vars?
If i write for example a node express app, i have the opportunity to pass some env vars from the server configuration.
Is there an opportunity in SharePoint Online also?
As SharePoint Online is a managed service, there's imho no way to do so.
Is…

ThomasP
- 35
- 4
2
votes
1 answer
How do you remove comments from a specific item of a Sharepoint list?
The delete () function of the IComments interface (PnP) does not delete the comment I select through the index, how can I use it? (@pnp/sp/comments)
in this way I get the comments of the item to which I will pass the index, but once I try to use the…

SiCaMa
- 25
- 4
2
votes
1 answer
SPFX pnpjs spfi().using(SPFx(this.props.context)) doesn't get web object
i have two client webparts in a page.
both of them use pnpjs to retreive list items.
the problem is that one webpart correctly loads sp.web while the other doesn't.
both use the same code to instantiate the element.
this.sp =…

Angelo Guarino
- 91
- 7
2
votes
0 answers
Telerik Kendo Angular Grid UI Issue with nested Grid
Kendo Angular grid is working fine with parent and nested grid for angular version 7.2. However when I update to Angular version 12.2.11 it is not rendering nested grid.
After debugging I noticed that data is appropriate. Below is the code I am…

Keyur
- 61
- 3
2
votes
2 answers
spservices.js is returning this error:- Uncaught (in > promise) TypeError: Cannot read properties of undefined (reading > 'LookupList')
Inside our SPFx SharePoint online web part we have the following code inside a javascript file:-
spservices.prototype.getLookupFieldOptions = function (siteUrl, listId, fieldInternalName) {
return __awaiter(this, void 0, void 0, function ()…

John John
- 1
- 72
- 238
- 501
2
votes
4 answers
Yeoman SPFx issue with installing @microsoft/sharepoint generator
I'm trying to learn how to use SPFx, however I'm falling down at the first step when it comes to running yo @microsoft/sharepoint.
I get the following error when running yo @microsoft/sharepoint:
Error @microsoft/sharepoint
You don't seem to have a…

alexthannah
- 109
- 2
- 8
2
votes
1 answer
How to import autobind from 'office-ui-fabric-react?
How to import autobind from 'office-ui-fabric-react?
I tried by using this method
import { autobind } from 'office-ui-fabric-react/lib/Utilities';
But it showing error like
Module '"office-ui-fabric-react/lib/Utilities"' has no exported member…

subashini udayakumar
- 33
- 1
- 5
2
votes
1 answer
SPFx & PnPjs People picker issues
Trying to develop a webpart with PnP people picker
(in promise) Error: Error making HttpClient request in queryable [400] ::> {"odata.error":{"code":"-1, Microsoft.SharePoint.Client.InvalidClientQueryException","message":{"lang":"en-US","value":"An…

explorer
- 21
- 7
2
votes
2 answers
Error - [tsc] Error: Cannot find module '@microsoft/rush-stack-compiler-3.2' - while running gulp serve command in SharePoint framework webs solution
I am trying to run gulp serve for SharePointSPFX solution. Surprisingly got this error
Starting subtask 'tsc'...
[23:28:59] Error - [tsc] Error: Cannot find module '@microsoft/rush-stack-compiler-3.2'
So I ran npm outdated to check any packages…

user3589162
- 99
- 1
- 9
2
votes
1 answer
How to get one drive files that are shared by you using graph api?
We have an graph api to get one drive files that are "shared to you". But just wanted to understand if there is any possible way that get one drive files that are "shared by you".
Approach that we are following now:
Get all the drive files and…

JayaChandraV
- 21
- 1
2
votes
0 answers
Custom Webparts Randomly Fail to Load, Giving "n._internalInitialize is not a function" Error
I have created a number of webparts using React that I have deployed to the app catalog of a SharePoint Online site. When loading a page containing various webparts, I am randomly experiencing an issue when loading a modern page containing them.…

Kim Broskie
- 21
- 2
2
votes
1 answer
SPFX in Teams Tab - Scroll problem in mobile app
I am having a SPFX-Webpart as static teams tab. I builded the manifest manually (like here https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/creating-team-manifest-manually-for-webpart). This is working fine so far.
But my…

devil_inside
- 412
- 3
- 9
2
votes
1 answer
Node JS and npm installtion for SPFX sharepoint webpart
I am trying to install node js and npm for Sharepoint SPFX Web part.( Node Version: v14.4.0, Npm Version: 6.14.5).
When I try "gulp trust-dev-cert" getting below errors:
ReferenceError: primordials is not defined
at fs.js:39:5
at req_…

maraswami
- 31
- 4
2
votes
1 answer
Fabric UI Modal custom sizing
Please help to customize Fabric UI Modal window. I've tried to minimize height and remove vertical scrolling. Tried to work with containerClassName, className, scrollableContentClassName - but none of them work.
In scss file:
.modal {
…

Kavrat
- 87
- 1
- 8