pcl icon indicating copy to clipboard operation
pcl copied to clipboard

Error when running gulp serve in SPFX

Open dsravankumar1987 opened this issue 8 years ago • 4 comments

Hi,

Creating a sample webpart using SPFX with Angular 4, and getting the below error after running gulp serve. Kindly help . [14:40:54] Starting 'serve'... [14:40:54] Starting gulp [14:40:54] Starting subtask 'configure-sp-build-rig'... [14:40:54] Finished subtask 'configure-sp-build-rig' after 9.63 ms [14:40:54] Starting subtask 'spfx-serve'... Starting api server on port 5432. Registring api: /getwebparts Registring api: /. Registring api: /workbench [14:40:55] Error - [spfx-serve] Error: Invalid glob argument: [14:40:55] Error - 'spfx-serve' sub task errored after 488 ms Invalid glob argument: [14:40:55] 'serve' errored after 514 ms [14:40:55] About to exit with code: 1 Process terminated before summary could be written, possible error in async code not continuing! Trying to exit with exit code 1**

Regards, Sravan.

dsravankumar1987 avatar Aug 31 '18 10:08 dsravankumar1987

Wrong project?

SergioRAgostinho avatar Aug 31 '18 10:08 SergioRAgostinho

### Make sure your local version of gulp is not 4.0.0

If the local version of gulp is 4.0.0 then change into the package.json and make the configuration to 3.9.1 and try npm install --save and then try gulp serve

This will do the trick.

smit1529 avatar Oct 16 '18 12:10 smit1529

### Make sure your local version of gulp is not 4.0.0

If the local version of gulp is 4.0.0 then change into the package.json and make the configuration to 3.9.1 and try npm install --save and then try gulp serve

This will do the trick.

That did help. thanks.

JEEVANJGA avatar Mar 13 '19 13:03 JEEVANJGA

Is there any way to make it work with gulp version ^4.0.0? Want it due to the different version of watcher

reliktus avatar May 09 '19 06:05 reliktus