Category : thingsboard

I clone thingsboard from their github repo. But when I am going to build the production I am getting an error. In console it give me something like this. An unhandled exception occurred: Cannot read property ‘_options’ of undefined See “C:UsersAsusAppDataLocalTempng-GjvaXOangular-errors.log” for further details. I use ‘ng build –prod –vendor-chunk’ to build production. The detail ..

Read more

I created my own custom widget. But the problem is I can’t access the currently logged in user in my widget. I searched for many times but found only 1 solution. var $injector = self.ctx.$scope.$injector; var userService = $injector.get(‘userService’); var userId = userService.getCurrentUser().userId; But this solution doesn’t work for me. Source: Ask Javascript..

Read more