Gulp and run-sequence error : Task is not configured as a task on gulp

I'm trying to add run-sequence to my gulp workflow but I have this error every time I try to execute my task in which I use run-sequence : *Task is not configured as a task on gulp.* According to...

How to Gulp-Watch Multiple files?

I have something like this: gulp.task('default', ['css', 'browser-sync'] , function() { gulp.watch(['sass/**/*.scss', 'layouts/*.css'], function() { gulp.run('css'); }); }); but it does...

How can I make multiple projects share node_modules directory?

Whenever I make projects, I have to download all dependencies of node modules. Without copying the node_modules, Is there anyway to share the central node_modules in multiple projects? like the...

Is it possible to have a node_modules directory shared between projects

I have a project setup that is as follows: workspace └cache └node_modules └gulp (and gulp-plugins, express etc.) └nodejs └node.exe └project1 └gulpfile.js └project2 ...

npm install packagename --save-dev not updating package.json

Are there simple or subtle reasons that package.json would not update after running a --save-dev? This is my command: npm install modulename --save-dev Run from the root of the project. The...

Live reload for electron application

I want to use a combination of VScode + Gulp + Electron to build an application. A nice feature of the development workflow would be to add an live reload task to my Gulp watch task, to reload the...

How can I run multiple npm scripts in parallel?

In my package.json I have these two scripts: "scripts": { "start-watch": "nodemon run-babel index.js", "wp-server": "webpack-dev-server", } I have to run these 2 scripts in parallel...

How to use SASS in Ionic framework?

I am trying to use SASS in my project. I open this link and follow all command. I create a project and setup SASS. http://learn.ionicframework.com/formulas/working-with-sass/ I got this directory...

Gulp watch all files but render only one (sass)

I want to make gulp watch for all changes on my work folders but to generate only one file. Because I use scss which imports all required files, there is no need to compile all .css files, only...

React-router not displaying component

I'm currently learning react-router, and then trying to implement it in a sample app. Here is my code: index.html <!DOCTYPE html> <html> <head> <title>Sample APP</title> <link...

NPM vs. Bower vs. Browserify vs. Gulp vs. Grunt vs. Webpack

I'm trying to summarize my knowledge about the most popular JavaScript package managers, bundlers, and task runners. Please correct me if I'm wrong: npm & bower are package managers. They just...

How to watch and reload ts-node when TypeScript files change

I'm trying to run a dev server with TypeScript and an Angular application without transpiling ts files every time. I found that I can do the running with ts-node but I want also to watch .ts files...

react-native run-android fails Error watch

I am having trouble figuring out the cause of the issue. I start the server with npm start I deploy the code and reverse the adb to a physical device with react-native run-android. i get the...

SyntaxError: 'import' and 'export' may appear only with 'sourceType: module' - Gulp

Consider the following two files: app.js import Game from './game/game'; import React from 'react'; import ReactDOM from 'react-dom'; export default (absPath) => { let gameElement...

Play Application Couldn't be Started

Recently I've been assigned for a project created with AngularJs and it uses Java Play framework to run it. I use IntelliJ-Idea IDE for the development and to run this application. Once I clicked...

Illegal constructor with EcmaScript 6

First of all I would like that say that I don't really know how I can explain what I did on order to get the error mentioned in the title (uncaught TypeError: Illegal constructor). I am using...

Uncaught TypeError: Vue.component is not a function

In OS X with Laravel/Homestead, I'm getting an error using Vue (v2.2.1). The component won't load and the console error is "Uncaught TypeError: Vue.component is not a function". Full console...

VS Code SCSS auto compiling to CSS

I am total beginner in programming and just started to learn HTML/CSS. For coding I started to use VS Code. And I really like it. Only problem so far, what I got, is auto compiling of SCSS to...

How can I set selected option selected in vue.js 2?

My component vue is like this : <template> <select class="form-control" v-model="selected" :required @change="changeLocation"> <option :selected>Choose Province</option> ...

CSS not updating on Node.js?

Trying to get the css to update on the browser using browser sync via Gulp on Node.js... What am I doing wrong? This is the Gulp.js file var themename = 'playtest haha 1'; var gulp =...

How do I view linting errors when i run 'gulp'?

I'm trying to install the Airbnb JavaScript style guide into my environment. I'm using gulp to show linting errors as I save my .js files but it does not show it. If I do 'eslint main.js' it...

I'm getting error in node using gulp and gulp-livereload

i downloaded livereload extension but it's not working, here's the error. Error: watching ./src/*.css: watch task has to be a function (optionally generated by using gulp.parallel or...

How to fix "ReferenceError: primordials is not defined" in Node.js

I have installed Node.js modules by 'npm install', and then I tried to do gulp sass-watch in a command prompt. After that, I got the below response. [18:18:32] Requiring external module...

Gulp won't run correctly

I am doing the tutorial found here to learn Bootstrap 4: https://www.youtube.com/watch?v=hnCmSXCZEpU&t=484s When came time to run the gulp command, the gulp command was not found. After looking...

ReferenceError: Echo is not defined

I'm using laravel echo with pusher js to build a real-time feature in my app. I've done all the steps required as told by the doc. I've successfully set up the pusher configurations and it works...

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object

There was a need to deploy an old project. Corrected gulpfile.js a bit so that the assembly started running, it came across an error: [21:12:57] Finished 'html:build' after 71 ms [21:12:57]...

Processing arrays within Gulp to create bundles in each directory with ordered files

Like most I have been concatenating my JS/CSS files into one big file within Gulp, however, with HTTP2 becoming the norm nowadays I thought I would change my gulp file instead to make related...

Configuring multiple commands to run in parallel in VS Code tasks (to compile and autoprefix Sass)

I had previously been using Koala to compile my Sass with autoprefixing and minifying (on Windows), but have come to find that Koala is no longer maintained. I'm therefore trying to figure out how...

Using imagemin-mozjpeg with Docker throws this error "spawn Unknown system error -8"

On my macOS I don't seem to have any issue, but when using Docker I get this output: node_1 | [08:16:41] Finished 'clean' after 23 ms node_1 | [08:16:41] Starting 'scripts'... node_1 ...

Add a condition to run a gulp watch

I have a gulp watch task as following: gulp.task("watch", () => { const watch = { 'dev': [src_folder + '**/*.njk', src_js_folder + '**/*.js'], 'css': [src_sass_folder + '**/*.scss'] } ...