Questions tagged [nodejs]
Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices
57 questions
0
votes
0
answers
66
views
The Subtasks to "gulp serve" won't finish and leaves the terminal hanging
i'm new to Sharepoint developpement and i'm trying to work on a project using SPFx WebParts.
I followed the Microsoft Instructions and the project was built normally using "yo @microsoft/...
0
votes
0
answers
53
views
SPFx - NodeJS Version update in Solution
I have upgraded the nodeJS version from 14 to 18.18.2 now the old solution is not running as it says to i am running in old version which is indeed. Now my question would be, how do i upgrade my ...
0
votes
1
answer
70
views
Webparts No Longer Loading in Workbench - No Errors
All of a sudden, web parts on all projects will not load in the workbench. Gulp runs without errors but it is trying to call manifests.js from a folder called "build" in the temp directory. ...
1
vote
1
answer
1k
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
599
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
0
answers
525
views
SPFx gulp trust-dev-cert Error
I am getting following error after running 'gulp trust-dev' in SPFx:
PS C:\Users\s.framework\Code\ZEN> gulp trust-dev-cert
Build target: DEBUG
[15:11:11] Using gulpfile ~\Code\ZEN\gulpfile.js
[15:...
0
votes
1
answer
287
views
How to upload Large files using node.js and spsave module
I have implemented multiple file uploads using spsave. But whenever i try to upload larger file(5mb+) files are not getting uploaded.
const apiRequest = spsave(coreOptions, creds, fileOptions);
...
0
votes
1
answer
1k
views
Is there any problem if my SPFx requires "node": ">=16.13.0 <17.0.0" while my node.js version is "14.18.1"
I want to deploy this SPFx sample inside my tenant @ https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-chatgpt-app. Now inside the package.json file below is mentioned regarding the ...
0
votes
1
answer
4k
views
gulp build is raising this Error - [tslint] Error: Cannot find module '@microsoft/rush-stack-compiler-3.2'
I want to install this web part from hhttps://github.com/AsishP/SPFxWebParts , but when i run this command gulp build i got this error Error - [tslint] Error: Cannot find module '@microsoft/rush-stack-...
0
votes
0
answers
25
views
Setting document details when uploading to SharePoint Online
I need to be able to set certain column details when uploading documents to Sharepoint (mandatory fileds to be able to edit the files).
async uploadFile(file) {
let data = new FormData();
...
5
votes
2
answers
3k
views
Unable to setup SharePoint Framework Dev Environment: TypeError: lookup.flatMap is not a function
I am unable to setup SPFx Development Environment for my SharePoint Online. I installed 10.24 and 10.20 version of Nodejs then also installed gulp and yeoman. But when I execute yo @microsoft/...
0
votes
0
answers
1k
views
NodeRed POST request to Sharepoint REST API
I want to upload files on Sharepoint and I'm using Node Red for communicate with REST Sharepoint API.
As far as I know, first of all I need to request a diggest token for the POST communication: so, ...
0
votes
1
answer
5k
views
Unable to run "yo @microsoft/sharepoint"
I am trying to run my first SPFX as mentioned on this link @ https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension .. but when i run yo @microsoft/...
0
votes
2
answers
715
views
how to get a pre-authenticated URL to a Sharepoint document?
I'm using the Sharepoint REST API server-side to browse through documents, that works.
For authentication (having login credentials known server-side) I use node-sp-auth which provides me a FedAuth ...
0
votes
1
answer
411
views
How to fetch data from _vti_bin/listdata.svc using node js
I'm having some trouble figuring out how to get data from the _vti_bin/listdata.svc on my sharepoint online site.
Essentially I am trying to fetch the data in this listdata.svc file to then insert it ...