Hi guys
My logreader is not working anymore. During the start of pimatic I get the following errors:
22:27:58.959 [pimatic] info: Loading plugin: "pimatic-log-reader" (0.9.1)
22:27:58.961 [pimatic] debug: debug is true in plugin config, showing debug output for pimatic-log-reader.
22:27:58.978 [pimatic] error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
22:27:58.998 [pimatic] debug: SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
22:27:58.998 [pimatic] debug:> at exports.runInThisContext (vm.js:53:16)
22:27:58.998 [pimatic] debug:> at Module._compile (module.js:373:25)
22:27:58.998 [pimatic] debug:> at Object.Module._extensions..js (module.js:416:10)
22:27:58.998 [pimatic] debug:> at Module.load (/home/pi/pimatic-app/node_modules/pimatic-mobile-frontend/node_modules/nap/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
22:27:58.998 [pimatic] debug:> at Function.Module._load (module.js:300:12)
22:27:58.998 [pimatic] debug:> at Module.require (module.js:353:17)
22:27:58.998 [pimatic] debug:> at require (internal/module.js:12:17)
22:27:58.998 [pimatic] debug:> at module.exports (/home/pi/pimatic-app/node_modules/pimatic-log-reader/log-reader.coffee:12:22)
22:27:58.998 [pimatic] debug:> at PluginManager.loadPlugin (/home/pi/pimatic-app/node_modules/pimatic/lib/plugins.coffee:83:16)
22:27:58.998 [pimatic] debug:> at /home/pi/pimatic-app/node_modules/pimatic/lib/plugins.coffee:485:25
22:27:58.998 [pimatic] debug:> at tryCatcher (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/util.js:16:23)
22:27:58.998 [pimatic] debug:> at Promise._settlePromiseFromHandler (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:512:31)
22:27:58.998 [pimatic] debug:> at Promise._settlePromise (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:569:18)
22:27:58.998 [pimatic] debug:> at Promise._settlePromiseCtx (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/promise.js:606:10)
22:27:58.998 [pimatic] debug:> at Async._drainQueue (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:138:12)
22:27:58.998 [pimatic] debug:> at Async._drainQueues (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:143:10)
22:27:58.998 [pimatic] debug:> at Immediate.Async.drainQueues [as _onImmediate] (/home/pi/pimatic-app/node_modules/pimatic/node_modules/bluebird/js/release/async.js:17:14)
22:27:58.998 [pimatic] debug:> at processImmediate [as _immediateCallback] (timers.js:383:17)
Does anyone know what’s the matter and how to solve it?