gulp.pipe() and src() not a function

34
November 21, 2020, at 9:50 PM
var gulp = require('gulp'); 
var browserify = require('browserify');
var reactify = require('reactify');

gulp.task('react', function(){
console.log("gulp is runnung");
});
gulp.src('src/App.js')
.pipe(browserify({
insertGlobals: false,
debug: true,
transform: [reactify]
}))
.pipe(gulp.dest('./dist/js'));
gulp.task("watch", function(){
    gulp.watch(["src/**/*.js"," src/**/*.jsx"], ["react"]);
    })
gulp.task("default", ["watch"]);
module.exports = gulp;

New to Gulp not sure what to do here I installed every dependency gulp, reactify and browserify

.pipe(gulp.dest('./dist/js'));
 ^
TypeError: gulp.src(...).pipe(...).pipe is not a function
    at Object.<anonymous> (C:\Users\geilkea\Desktop\my-project\src\gulpfile.js:16:2)
    at Module._compile (node:internal/modules/cjs/loader:1083:30)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1112:10)
    at Module.load (node:internal/modules/cjs/loader:948:32)
    at Function.Module._load (node:internal/modules/cjs/loader:789:14)
    at Module.require (node:internal/modules/cjs/loader:972:19)
    at require (node:internal/modules/cjs/helpers:88:18)
    at [eval]:1:12
    at Script.runInThisContext (node:vm:132:18)
    at Object.runInThisContext (node:vm:309:38)

This is the error im getting do I have to require something else?

READ ALSO
How to use promise.allSettled with typescript?

How to use promise.allSettled with typescript?

Typescript build is failing as it does not seem to like PromiseallSetttled even though I have set ts config comilerOptions with "lib": [ "ES2020

42
Is there any way to pass a React component to Push notification using service worker and node js?

Is there any way to pass a React component to Push notification using service worker and node js?

I am looking for a solution where I can pass a react component (let's take a modal component) to the push notification parameter using service worker and node jsMy service worker code for normal push notification code is-

42
In PDFMake I set the height and weight of table, but it isn&#39;t work

In PDFMake I set the height and weight of table, but it isn't work

I've created tables with pdfmakeThe pagesize and the columns size was fixed

30
Get Firebase token from external API in my test cases

Get Firebase token from external API in my test cases

I have written custom nodejs authentication utilising the firebase token based auth module

43