{"action":"opened","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6071","repository_url":"https://api.github.com/repos/jhipster/generator-jhipster","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6071/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6071/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/6071/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/6071","id":241681941,"number":6071,"title":"Types of property 'id' are incompatible","user":{"login":"archananevreker","id":30038007,"avatar_url":"https://avatars3.githubusercontent.com/u/30038007?v=3","gravatar_id":"","url":"https://api.github.com/users/archananevreker","html_url":"https://github.com/archananevreker","followers_url":"https://api.github.com/users/archananevreker/followers","following_url":"https://api.github.com/users/archananevreker/following{/other_user}","gists_url":"https://api.github.com/users/archananevreker/gists{/gist_id}","starred_url":"https://api.github.com/users/archananevreker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archananevreker/subscriptions","organizations_url":"https://api.github.com/users/archananevreker/orgs","repos_url":"https://api.github.com/users/archananevreker/repos","events_url":"https://api.github.com/users/archananevreker/events{/privacy}","received_events_url":"https://api.github.com/users/archananevreker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-10T11:30:22Z","updated_at":"2017-07-10T11:30:22Z","closed_at":null,"body":"##### **Overview of the issue**\r\nWhen we use mongodb and angular 4 using  jhipster to create microservice I get issue during build using npm start\r\n\r\n\r\nERROR in [at-loader] ./src/main/webapp/app/entities/car/car.model.ts:3:14 \r\n    TS2420: Class 'Car' incorrectly implements interface 'BaseEntity'. \r\n  Types of property 'id' are incompatible. \r\n    Type 'string' is not assignable to type 'number'. \r\n\r\n<!-- Explain the bug or feature request, if an error is being thrown a stack trace helps -->\r\n\r\n##### **Motivation for or Use Case**\r\n\r\nCreated a simple microservice Car with entity Car having make model and price\r\n\r\n as columns\r\n\r\n<!-- Explain why this is a bug or a new feature for you -->\r\nThis error is faced cause mongo db gives default id as string and Base Entity interface in jhipster code expects number\r\n##### **Reproduce the error**\r\n\r\n<!-- For bug reports, an unambiguous set of steps to reproduce the error -->\r\nStart registry\r\nStart mongodb\r\nCreate a microservice\r\nCreate a gateway\r\nCreate a entity\r\nLink the entity to gateway\r\nstart microservice\r\nstart gateway\r\nnpm start\r\n\r\n##### **Related issues**\r\n\r\n<!-- Has a similar issue been reported before? Please search both closed & open issues -->\r\nno\r\n##### **Suggest a Fix**\r\nBaseEntity should have id as string and not number\r\n<!-- For bug reports, if you can't fix the bug yourself, perhaps you can point to what might be\r\n  causing the problem (line of code or commit) -->\r\n\r\n##### **JHipster Version(s)**\r\n\r\n<!--\r\nWhich version of JHipster are you using, is it a regression?\r\n-->\r\n3.3.5\r\n##### **JHipster configuration**\r\n\r\n<!--\r\nTo provide all information we need, you should run `jhipster info` in the project root folder, and\r\ncopy/paste the result here.\r\nThe `.yo-rc.json` file generated in the root folder is mandatory for bug reports. This will help us to replicate the scenario.\r\nYou should remove any sensitive information like the rememberMe key or the jwtSecretKey key.\r\n-->\r\nI am not able to attach the `.yo-rc.json  file \r\n##### **Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**\r\n\r\n<!--\r\nIf the error is during an entity creation or associated with a specific entity.\r\nIf you are using JDL, please share that configuration as well.\r\n-->\r\n\r\n\r\n\r\n\r\n##### **Browsers and Operating System**\r\n\r\n<!-- What OS are you on? is this a problem with all browsers or only IE8? -->\r\nOS is windows 10 , no issue with IE\r\n\r\n- [*] Checking this box is mandatory (this is just to show you read everything)\r\n"}}
{"actor":{"display_login":"archananevreker"}}