Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

Questions tagged [gulp]

The tag has no usage guidance.

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

AssesrtionError: Task never defined : clean; on gulp version 4

I have recently migrated from gulp 3 to gulp 4 in SPFx 1.13.1 project. Previously I had SPFx 1.10 and gulp 3.9.1 version. After migration when I did run Yarn dist I got an error because I was using ...
user avatar
0 votes
1 answer
111 views

"gulp serve" is returning this error "Cannot GET /temp/workbench.html" when open "https://localhost:4321/temp/workbench.html"

I want to create an SPFx web part, so i run these commands:- yo @microsoft/sharepoint gulp serve then when i try to run gulp serve, i got this error:- Cannot GET /temp/workbench.html here is the ...
user avatar
  • 2,234
0 votes
1 answer
516 views

"gulp serve" will return this error "ReferenceError: primordials is not defined"

I have 2 versions of node.js, as follow:- Your environment has been set up for using Node.js 17.1.0 (x64) and npm. C:\Windows\System32>nvm list 16.13.0 8.16.2 Now i am trying to run gulp ...
user avatar
  • 2,234
0 votes
1 answer
544 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-...
user avatar
  • 2,234
1 vote
0 answers
74 views

Error - [tsc] node_modules/@fluentui/react/lib/components/ContextualMenu/ContextualMenu.types.d.ts(13,35): error TS1005: ';' expected

I am trying to develop this SPFX inside our SharePoint online site @ Model pop up in SPFX Where I did the following steps, but I got the below errors:- Your environment has been set up for using Node....
user avatar
  • 2,234
1 vote
1 answer
202 views

SPFx - React component fail to load on site page

I was trying to import and using react component from: https://www.npmjs.com/package/react-calendar-timeline It is just rendering normal on workbench: When I try to bundle and deploy to site page it ...
user avatar
1 vote
2 answers
243 views

gulp trust-dev-cert gives the error: ReferenceError: primordials is not defined

I'm setting up a development environment for SP2019. I've installed; Node.js 14.15.0 gulp CLI 2.3.0 and Local 3.9.1 yeoman 4.3.0 @microsoft/generator-sharepoint 1.12.1 Once I've started my new ...
user avatar
0 votes
0 answers
15 views

trying to validate that a file was uploaded to sharepoint - fails with ECONNREFUSED 127.0.0.1:443

I have the following code that successfully uploads test.sspkg to my sharepoint app catalog. Now I'm trying to use sp-request to prove that it's actually there. But I'm getting an ECONNREFUSED error. ...
user avatar
  • 101
0 votes
1 answer
402 views

SPFX webpart not added to site after deployment

I have developed a SPFx WebPart using react. When packaging this solution, I use the following commands: gulp clean gulp bundle --ship gulp package-solution --ship FYI, I'm using these options in my ...
user avatar
1 vote
1 answer
81 views

Configuring Dev environment for SP2016,SP2019 on prem and M365

I have several clients who are needing to migrate from SP2016 to SP2019 over the next 2 months. We will be setting up a hybrid environment for these clients where Intranet & Extranet requirements ...
user avatar
0 votes
0 answers
4 views

why is gulp clean being triggered when I call my gulp task?

I have the following gulp task: build.task('upload', { execute: (config) => { /* THIS WORKS, BUT ONLY if i do "gulp upload". "gulp upload -u < commandline ...
user avatar
  • 101
0 votes
0 answers
25 views

Error handler for gulp-spsync call is never reached

I am uploading and deploying sharepoint packages via gulp. Sometimes, it's possible that the app catalog folder doesn't exist, and so the upload will fail. I'd like to just make a note of the error ...
user avatar
  • 101
0 votes
0 answers
95 views

Running SPFx gulp bundle in Docker container takes extremely long to start - why?

I'm running SPFx builds in a Docker container which works well. The approach is described here: https://github.com/waldekmastykarz/docker-spfx I'm using WSL2 and Ubuntu. But unfortunately running gulp ...
user avatar
0 votes
0 answers
160 views

Gulp serve “Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.”

I want to build a SharePoint web-part, so i run these commands:- yo @microsoft/sharepoint Gulp serve but when the browser opens i will get an empty screen instead of getting a SharePoint web part + ...
user avatar
0 votes
1 answer
626 views

SharePoint workbench not reflecting changes

I'm building a SharePoint SPFx react web app. I've been using workbench for the last few weeks and it's been great. However, today when I did gulp serve I noticed that my changes are no longer being ...
user avatar
0 votes
3 answers
2k views

Error: "Cannot read property apply of undefined" while running gulp commands for SPFx webpart

I am trying to do a sample webpart. While running any of the below commands, it is showing the same error as shown in the image: gulp trust-dev-cert gulp serve gulp build Can anyone help me on this ...
user avatar
0 votes
0 answers
1k views

Gulp bundle --ship: The build failed because a task wrote output to stderr error

I'm building a SharePoint SPFx and randomly when running gulp bundle --ship I get the following error: The build failed because a task wrote output to stderr. Exiting with exit code: 1 I saw this ...
user avatar
0 votes
2 answers
492 views

SPFX ClientSideAssets folder and dist folders have old code

When I build my solution, minified JS files have my old lines. Here are my steps: 1 - gulp clean 2 - gulp build 3 - gulp bundle 4 - gulp package-solution --ship file under \dist\test-web-part.js file ...
user avatar
  • 492
2 votes
2 answers
192 views

how gulp serve related to sharepoint spfx webpart

I have created the sample spfx solution and uploaded it into the app catalog and i have added it to the site page. if I am changing in the local code and if I run the gulp serve the actual changes are ...
user avatar
  • 1,095
1 vote
1 answer
1k views

Failed to load component

I've been having a problem with Web Parts. I created this webpart and it works perfectly fine in the workbench, but when I tried to deploy it I received this error. I've tried gulp clean and ...
user avatar
0 votes
1 answer
398 views

Installing Yeoman generator fails with Node 10.18.1

This evening I thought I would update my SPFx Dev Toolchain: install latest Node 10.xx LTS (using NVM as recommended by AC or David Warner MVPs) Better Node.js Install Management with Node Version ...
user avatar
0 votes
1 answer
164 views

gulp serve error

When run gulp serve I am getting below error I am using below packages I found on internet that if you are using node 12 and gulp 3 then it will have above issue but I am having node 12 and gulp 4, ...
user avatar
  • 1,519
0 votes
2 answers
4k views

How to stop gulp serve / workbench?

I just started my first SPFx project on SharePoint 2016. After I key in gulp serve the workbench prompt up. My question is, how to exit the workbench? In my DOS prompt it seems gulp is still ...
user avatar
  • 4,016
0 votes
1 answer
217 views

SharePoint Framework v1.1.0 requirement

I want to build my first spfx page on our SP2016 on-premise environment. Could you advice what is the requirement? I mentioned v1.1.0 because later version are not supported by SP2016 according to ...
user avatar
  • 4,016
0 votes
0 answers
22 views

SPFx Solution has a warning stopping production builds has anyone seen it before?

I have been supporting an SPFx solution and I am required to make a small change however it will no longer build. I have tried pulling the last version back down from our repository but it has the ...
user avatar
0 votes
1 answer
2k views

All of sudden gulp command not recognizing

I made windows update on this Sunday. From that point, I am not able to execute gulp commands. I am not sure if there is any relation between windows update and gulp command. I am getting below error. ...
user avatar
  • 1,526
2 votes
1 answer
786 views

Can't run "gulp trust-dev-cert". Error "cannot read "tostring" of null"

I am trying to build up a react web part for SharePoint, and I was following the instructions from Microsoft page : https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/build-a-...
user avatar
1 vote
2 answers
3k views

Workbench issues with spfx 18.2 and react 16.8.4

I have recently updated a number of modern spfx webparts to spfx 18.2 and this morning when I try to debug in workbench (locally and on tenant) I am getting serve errors in relation to react and react-...
user avatar
0 votes
0 answers
100 views

spfx how to minify files for own CDN

Original question was, whether is it possible to somehow extend the webpack/gulp inside of spfx solution to have an extra task to minify some js files supposed to move to Office365 CDN? I would need ...
user avatar
  • 239
1 vote
2 answers
650 views

Error after installing the SPFx environment for the first time

Got a following error after installing the SPFx environment for the first time any help would be helpful. Thanks in Advance.
user avatar
1 vote
1 answer
2k views

SharePoint SPFx webpart - gulp trust-dev-cert Error

i try to create a webpart using SPFX: after running successfully : yo @microsoft/sharepoint Gulp version: gulp -v CLI version 2.1.0 Local version 3.9.1 node version: v10.15.3 i run : gulp ...
user avatar
  • 2,173
0 votes
1 answer
59 views

Issue when debug and publish an extension created with SharePoint Framework Version 1.7 on a SharePoint Server 2019

I create an extension with SharePoint Framework 1.7 with yo @microsoft/sharepoint by selecting the options as indicated below: SharePoint 2019 onwards, including SharePoint Online. Use the current ...
user avatar
3 votes
2 answers
2k views

SharePoint Framework Deployment error: failed to load URL from CDN

Background: I occasionally have all instances of a webpart fail after deploying a change. The webpart was recently built using the latest SharePoint framework. The gulp trust-dev-cert command was run....
user avatar
0 votes
1 answer
295 views

Copied project "product ID" fault in app catalogue

I have an web part that I have copiedto two examples and modified the other one. However, when I try to upload them both to an app catalogue I get an error (the same product ID exists for the second ...
user avatar
0 votes
1 answer
1k views

SPFx - Gulp serve fails

I had 2 webparts in my solution. But when i tried to add the 3rd webpart, it successfully adds. But after that "gulp serve" fails. Below is the error message D:\Bloom\Code\BloomWebparts>gulp serve ...
user avatar
1 vote
1 answer
355 views

What do i need to do for gulp serve to work? On Windows 7 64 bit gulp serve raises error in module.js:549

So this below is the output from running gulp serve - what do I need to do to get it running? M:\>gulp serve module.js:549 throw err; ^ Error: Cannot find module '@microsoft/sp-build-web' ...
user avatar
  • 11
2 votes
1 answer
2k views

Angular 6 and Sharepoint SPFX

Just wondering if anyone has any samples or links to instructions for running an angular 6 app on Sharepoint SPFX. I have followed this example for Angular 5 but it will not work once I upgrade the ...
user avatar
  • 121
0 votes
2 answers
487 views

Handlebars with spfx, Module not found

I am trying to use handlebars in a client webpart using these posts: https://n8d.at/blog/how-to-use-handlebars-in-sharepoint-framework-projects-spfx/ https://n8d.at/blog/first-handlebars-web-part-in-...
user avatar
0 votes
1 answer
233 views

Error implementing custom SPfx App

I have a problem implementing my share-point SPfx app to the share-point site of my organisation. I followed the instructions provided by microsoft at https://docs.microsoft.com/en-us/sharepoint/dev/...
user avatar
1 vote
5 answers
14k views

Local gulp not found when executing gulp serve

I have downloaded the spfx samples from github and I am running into this problem when I execute gulp serve. λ gulp serve [12:39:37] Local gulp not found in C:\react-todo-basic [12:39:37] Try running:...
user avatar
  • 1,316
4 votes
1 answer
4k views

SPFX Gulp Serve for a wepart is not opening workbench

I'm trying to add a webpart through SPFX here but when i write Gulp Serve it's not loading the workbench.aspx. Instead, it's trying to load a contoso.sharepoint page and the page is not opening. Any ...
user avatar
0 votes
1 answer
275 views

How to analyze SPFx bundle content?

I know there is webpack-bundle-size-analyzer for visualizing and analyzing bundle sizes with webpack projects but how do I integrate it (or something similar) to SPFx web part or SPFx extension ...
user avatar
3 votes
1 answer
720 views

SPFx - This site can’t be reached after running gulp serve

Any one with the solution to the follow error ? Zero edit since yo @microsoft/sharepoint then gulp serve The following page error opens : Runing on node 6.12 . with the following installed : ├...
user avatar
0 votes
0 answers
597 views

SPfx gulp-serve command not launching the browser page in local host

I have created HelloWorld web part from this tutorial. The command yo @microsoft/sharepoint and gulp trust-dev-cert executed successfully. After that, I executed gulp serve command which shows below ...
user avatar
  • 3,230
3 votes
1 answer
4k views

Command Gulp Serve with server configuration

When I generate a spfx webpart/extension, i see this file generated (./config/serve.json) : { "$schema": "https://dev.office.com/json-schemas/core-build/serve.schema.json", "port": 4321, "...
user avatar
0 votes
2 answers
2k views

Easiest way to redeploy an SPFX extension

I've successfully deployed my first SharePoint Framework extension to my SharePoint Online app catalog + site collection. My question is about deployment efficiency. Currently to deploy, I have to do ...
user avatar