Skip to content

Cannot read property 'hasOwnProperty' of undefined #2212

Closed
@daniel7912

Description

@daniel7912
  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack 4.0.4
Node 5.3.0
npm 3.3.12
Operating System Ubuntu 16.04
Item Answer
Transpiler Babel / TypeScript
Markup HTML / Pug
CSS CSS / LESS / SCSS / Stylus
Router ngRoute / ui-router
Client Tests Jasmine / Mocha
DB MongoDB / SQL
Auth Y

I just ran yo angular-fullstack which worked OK. Then I ran gulp serve, and the page loaded with the following error in the console window:

angular.js:13920 TypeError: Cannot read property 'hasOwnProperty' of undefined at auth.service.ts:138

This is causing the nav bar to display the logout button instead of login too, and I can access the profile page even though I haven't logged in.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions