Search Posts

Category: gulp

gulpfile network issue during WebSocket handshake: Unexpected response code: 400 @ browser-sync

Facing below error while requesting .net web API post request with localhost in angular, same code is working fine with other machine at my home with different network :- WebSocket connection to ‘ws://localhost:3000/browser-sync/’ failed: Error during WebSocket handshake: Unexpected response code: 400 n.doOpen @ browser-sync-client.js?v=2.18.1:2 // Task to run build server for testing final app gulp.task(‘build:serve’, function () { browserSync({ server: { baseDir: “./build/” } })}) Source: AngularJS

Error blank page with gulp dist:serve

vendor-bed50f88.js:31 Uncaught Error: [$injector:modulerr] Failed to instantiate module angularMaterialAdmin due to: Error: [$injector:nomod] Module ‘angularMaterialAdmin’ is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.$injector/nomod?p0=angularMaterialAdmin$injector/modulerr? Source: AngularJS

Heroku Application error Angularjs and Gulp

I have install my webapp Angular in Heroku but don’t work. I try many solution that I find in internet, but without result. package.json { “name”: “yoangular”, “version”: “0.0.0”, “dependencies”: {}, “scripts”: { “start”: “npm start” }, “devDependencies”: { “gulp”: “~3.9.0”, “gulp-autoprefixer”: “~3.0.2”, “gulp-angular-templatecache”: “~1.8.0”, “del”: “~2.0.2”, “lodash”: “~3.10.1”, “gulp-cssnano”: “~2.1.1”, “gulp-filter”: “~3.0.1”, “gulp-flatten”: “~0.2.0”, “gulp-eslint”: “~1.0.0”, “eslint-plugin-angular”: “~0.12.0”, “gulp-load-plugins”: “~0.10.0”, “gulp-size”: “~2.0.0”, “gulp-uglify”: “~1.4.1”, “gulp-useref”: “~3.0.3”, “gulp-util”: “~3.0.6”, “gulp-ng-annotate”: “~1.1.0”, “gulp-replace”: “~0.5.4”, “gulp-rename”: “~1.2.2”, […]

Auto Versioned Files Still Requires Refresh

I am working on a live, large AngularJS web application which has feature updates and hotfixes. We currently use gulp to build/minify/uglify our files as well as gulp-rev to add versioning to these files to assure our users have the latest files. This seems to work well, except when I go to our production site to make sure the change was made, I have to refresh the page before Chrome downloads/uses the correct files. My […]

throw er; // Unhandled ‘error’ event – NodeJS

Environment NodeJS Description I’m trying to run my Node application. npm run start I kept getting > [email protected] start /Users/bheng/Sites/BASE/api > nodemon ./bin/index.js -w server [nodemon] 1.11.0 [nodemon] to restart at any time, enter `rs` [nodemon] watching: /Users/bheng/Sites/BASE/api/server/**/* [nodemon] starting `node ./bin/index.js` events.js:160 throw er; // Unhandled ‘error’ event ^ Error: listen EADDRINUSE :::8000 at Object.exports._errnoException (util.js:1018:11) at exports._exceptionWithHostPort (util.js:1041:20) at Server._listen2 (net.js:1258:14) at listen (net.js:1294:10) at Server.listen (net.js:1390:5) at EventEmitter.listen (/Users/bheng/Sites/BASE/api/node_modules/express/lib/application.js:618:24) at Object.<anonymous> (/Users/bheng/Sites/BASE/api/bin/index.js:8:5) […]