Category: debugging
internet explorer localStorage, sessionStorage, indexDb
The localStorage, sessionStorage, indexDB tabs might disappear from the Edge (F12) dev tools. If you can’t find it in Debugger, you can manipulate the the webStorage from Console as those objects are defined on...
Javascript – Identify a promise object
You can use the following function to determine if the given object is promise object or not. function isPromise (p) { return (typeof p.then === ‘function’) ? true : false; }
Object doesn’t support property or method ‘forEach’
To make NodeList.forEach() method work on internet explorer, you will have to add the following polyfill in your application. (function () { if ( typeof NodeList.prototype.forEach === “function” ) return false; NodeList.prototype.forEach = Array.prototype.forEach;...
Event Constructor throws Object doesn’t support this action error in internet explorer
To use Event API on internet explorer, you will have to add the following polyfill when your application loads initially. (function () { if ( typeof window.CustomEvent === “function” ) return false; function CustomEvent...
Mac Force quit applications from task manager
Solution 1 command + option + esc (Mac) = ctrl + alt + delete (Windows) Solution 2 Open Activity Monitor
Cannot use [chunkhash] for chunk in ‘[name].[chunkhash].js’ (use [hash] instead)
To solve this issue, add filename property to your commonsChunkPlugin config. For example, make your commonsChunkPlugin look like the following : var CommonsChunkPlugin = require(‘webpack/lib/optimize/CommonsChunkPlugin’); module.exports = function () { … plugins: [ new...
Enable sourcemaps with webpack for dev and prod environments
Sourcemaps can be a handy tool during development and production for the following reasons: Provide us better means to debug our applications as we can still examine the original source code over generated one....
webpack error – sockjs-node connection refused
This is very generic error. Hence, it could be happening due to variety of reasons. In my experience, it happens mainly where there is something wrong in your config files. Let’s try the following...
Recent Comments