{"action":"opened","issue":{"url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/issues/46","repository_url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder","labels_url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/issues/46/comments","events_url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/issues/46/events","html_url":"https://github.com/jonathan-casarrubias/loopback-sdk-builder/issues/46","id":166831484,"number":46,"title":"RC.2 breaking","user":{"login":"cyberbobjr","id":607648,"avatar_url":"https://avatars.githubusercontent.com/u/607648?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberbobjr","html_url":"https://github.com/cyberbobjr","followers_url":"https://api.github.com/users/cyberbobjr/followers","following_url":"https://api.github.com/users/cyberbobjr/following{/other_user}","gists_url":"https://api.github.com/users/cyberbobjr/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberbobjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberbobjr/subscriptions","organizations_url":"https://api.github.com/users/cyberbobjr/orgs","repos_url":"https://api.github.com/users/cyberbobjr/repos","events_url":"https://api.github.com/users/cyberbobjr/events{/privacy}","received_events_url":"https://api.github.com/users/cyberbobjr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T14:21:39Z","updated_at":"2016-07-21T14:21:39Z","closed_at":null,"body":"Hi,\r\nI test the new rc2 sdk builder, but i have some bugs :(\r\n\r\nFirst of all, i launch the build:sdk command, everything is ok, but when i launch the typescript compiler, i have these errors :\r\n\r\n> Error:(20, 1) TS2308: Module './AccessToken' has already exported a member named 'AccessToken'. Consider explicitly re-exporting to resolve the ambiguity.\r\n\r\nthis is the content of my sdk/models/index.ts :\r\n\r\n```\r\n/* tslint:disable */\r\nexport * from './AccessToken';\r\n\r\nexport * from './Seminaire';\r\n\r\nexport * from './User';\r\n\r\nexport * from './UserEvent';\r\n\r\nexport * from './UserSeminaire';\r\n\r\nexport * from './Session';\r\n\r\nexport * from './Feed';\r\n\r\nexport * from './Like';\r\n\r\nexport * from './Comment';\r\n\r\nexport * from './UserSession';\r\n\r\nexport * from './Intervenant';\r\n\r\nexport * from './Image';\r\n\r\nexport * from './Organisateur';\r\n\r\nexport * from './Notation';\r\n\r\nexport * from './ACL';\r\n\r\nexport * from './RoleMapping';\r\n\r\nexport * from './Role';\r\n\r\nexport * from './Email';\r\n\r\nexport * from './BaseModels';\r\n```\r\n\r\nthe error come from the last line because a conflict exist with /AccessToken.\r\n\r\nContent of sdk/models/AccessToken.ts :\r\n```\r\n/* tslint:disable */\r\nimport {\r\n    User\r\n} from '../index';\r\n\r\nexport interface AccessTokenInterface {\r\n    id?:string;\r\n    /**\r\n     * time to live in seconds (2 weeks by default)\r\n     */\r\n    ttl?:number;\r\n    created?:any;\r\n    userId?:string;\r\n    user?:User;\r\n}\r\n\r\nexport class AccessToken implements AccessTokenInterface {\r\n    id:string;\r\n    /**\r\n     * time to live in seconds (2 weeks by default)\r\n     */\r\n    ttl:number;\r\n    created:any;\r\n    userId:string;\r\n    user:User;\r\n\r\n    constructor(instance?:AccessToken) {\r\n        Object.assign(this, instance);\r\n    }\r\n}\r\n```\r\n\r\nContent of sdk/models/BaseModels.ts :\r\n```\r\n/* tslint:disable */\r\nexport interface LoopBackFilterInterface {\r\n  fields?: any;\r\n  include?: any;\r\n  limit?: any;\r\n  order?: any;\r\n  skip?: any;\r\n  offset?: any;\r\n  where?: any;\r\n}\r\n\r\nexport class LoopBackFilter implements LoopBackFilterInterface {\r\n  fields: any;\r\n  include: any;\r\n  limit: any;\r\n  order: any;\r\n  skip: any;\r\n  offset: any;\r\n  where: any;\r\n}\r\n\r\nexport interface TokenInterface {\r\n  id?: any;\r\n  user?: any;\r\n  userId?: any;\r\n  ttl?: any;\r\n  created?: any;\r\n}\r\n\r\nexport class AccessToken implements TokenInterface {\r\n  id: any;\r\n  user: any;\r\n  userId: any;\r\n  ttl: any;\r\n  created: any;\r\n}\r\n\r\n```\r\nThis is the 1st error, if i rename AccessToken to Token inside BaseModels.ts, my console.log display this error after the application launching :\r\n\r\n> zone.js:323 Error: (SystemJS) TypeError: Class extends value undefined is not a function or null\r\n\t    at Object.eval (http://localhost:3000/sdk/services/custom/AccessToken.js:27:58)\r\n\t    at eval (http://localhost:3000/sdk/services/custom/AccessToken.js:948:4)\r\n\t    at eval (http://localhost:3000/sdk/services/custom/AccessToken.js:949:3)\r\n\t    at Object.eval (http://localhost:3000/sdk/services/custom/index.js:6:10)\r\n\tEvaluating http://localhost:3000/sdk/services/custom/AccessToken.js\r\n\tEvaluating http://localhost:3000/sdk/services/custom/index.js\r\n\tEvaluating http://localhost:3000/sdk/services/index.js\r\n\tEvaluating http://localhost:3000/sdk/index.js\r\n\tEvaluating http://localhost:3000/sdk/services/core/logger.service.js\r\n\tEvaluating http://localhost:3000/sdk/services/core/index.js\r\n\tEvaluating http://localhost:3000/sdk/services/custom/Organisateur.js\r\n\tEvaluating http://localhost:3000/services/auth.service.js\r\n\tEvaluating http://localhost:3000/app/ui/navbar.component.js\r\n\tEvaluating http://localhost:3000/app/app.component.js\r\n\tEvaluating http://localhost:3000/app/main.js\r\n\tError loading http://localhost:3000/app/main.js\r\n\r\nI don't understand what is the problem... please do you have this bug ? and can you resolve it please ?\r\n\r\nMany thanks for your help,\r\nbest regards\r\nBM"}}
{"actor":{"display_login":"cyberbobjr"}}