TypeError: Cannot read property ‘close’ of undefined
at Object. (/usr/local/lib/node_modules/ionic/node_modules/chalk/index.js:66:74)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/usr/local/lib/node_modules/ionic/dist/index.js:6:15)
at Module._compile (module.js:570:32)
After reinstalling ionic, there is no way to use it properly now
You’ll need to provide some more info here before anyone can really help you out.
When is this error thrown?
Are you able to launch your app and use it without this error happening? This can help you track down what is throwing this error.
My guess is its something to do with an ionic popup, and you are trying to call the close method without saving the popup to a variable, which you can then access later in order to call the close method.