{"action":"created","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":[{"url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/labels/bug","name":"bug","color":"ee0701"}],"state":"open","locked":false,"assignee":{"login":"jonathan-casarrubias","id":1533239,"avatar_url":"https://avatars.githubusercontent.com/u/1533239?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathan-casarrubias","html_url":"https://github.com/jonathan-casarrubias","followers_url":"https://api.github.com/users/jonathan-casarrubias/followers","following_url":"https://api.github.com/users/jonathan-casarrubias/following{/other_user}","gists_url":"https://api.github.com/users/jonathan-casarrubias/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathan-casarrubias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathan-casarrubias/subscriptions","organizations_url":"https://api.github.com/users/jonathan-casarrubias/orgs","repos_url":"https://api.github.com/users/jonathan-casarrubias/repos","events_url":"https://api.github.com/users/jonathan-casarrubias/events{/privacy}","received_events_url":"https://api.github.com/users/jonathan-casarrubias/received_events","type":"User","site_admin":false},"assignees":[{"login":"jonathan-casarrubias","id":1533239,"avatar_url":"https://avatars.githubusercontent.com/u/1533239?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathan-casarrubias","html_url":"https://github.com/jonathan-casarrubias","followers_url":"https://api.github.com/users/jonathan-casarrubias/followers","following_url":"https://api.github.com/users/jonathan-casarrubias/following{/other_user}","gists_url":"https://api.github.com/users/jonathan-casarrubias/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathan-casarrubias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathan-casarrubias/subscriptions","organizations_url":"https://api.github.com/users/jonathan-casarrubias/orgs","repos_url":"https://api.github.com/users/jonathan-casarrubias/repos","events_url":"https://api.github.com/users/jonathan-casarrubias/events{/privacy}","received_events_url":"https://api.github.com/users/jonathan-casarrubias/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-07-21T14:21:39Z","updated_at":"2016-07-22T11:37:11Z","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"},"comment":{"url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/issues/comments/234522086","html_url":"https://github.com/jonathan-casarrubias/loopback-sdk-builder/issues/46#issuecomment-234522086","issue_url":"https://api.github.com/repos/jonathan-casarrubias/loopback-sdk-builder/issues/46","id":234522086,"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},"created_at":"2016-07-22T11:37:11Z","updated_at":"2016-07-22T11:37:11Z","body":"Hi Jonathan, \r\nMany thanks for your answer, i've put the AccessToken in private, and rebuild the Angular2 SDK with the last version of the builder (rc3.2) but i've still have a bug in the console :(\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/Seminaire.js:27:54)\r\n\t    at eval (http://localhost:3000/sdk/services/custom/Seminaire.js:1528:4)\r\n\t    at eval (http://localhost:3000/sdk/services/custom/Seminaire.js:1529: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/Seminaire.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\nthis is my tsconfig.json :\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es6\",\r\n    \"module\": \"commonjs\",\r\n    \"moduleResolution\": \"node\",\r\n    \"sourceMap\": true,\r\n    \"emitDecoratorMetadata\": true,\r\n    \"experimentalDecorators\": true,\r\n    \"removeComments\": false,\r\n    \"noImplicitAny\": false\r\n  },\r\n  \"exclude\": [\r\n    \"node_modules\",\r\n    \"typings\",\r\n    \"typings/browser.d.ts\"\r\n  ]\r\n}\r\n```\r\nthis is the description of the seminaire model :\r\n```\r\n{\r\n  \"name\": \"Seminaire\",\r\n  \"plural\": \"Seminaires\",\r\n  \"base\": \"PersistedModel\",\r\n  \"idInjection\": true,\r\n  \"options\": {\r\n    \"validateUpsert\": true\r\n  },\r\n  \"properties\": {\r\n    \"id\": {\r\n      \"type\": \"string\",\r\n      \"required\": true\r\n    },\r\n    \"title\": {\r\n      \"type\": \"string\",\r\n      \"required\": true\r\n    },\r\n    \"details\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"startDateTime\": {\r\n      \"type\": \"string\",\r\n      \"required\": true\r\n    },\r\n    \"endDateTime\": {\r\n      \"type\": \"string\",\r\n      \"required\": true\r\n    },\r\n    \"locationLong\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"locationLat\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"pathPicture\": {\r\n      \"type\": \"string\"\r\n    },\r\n    \"address\": {\r\n      \"type\": \"object\"\r\n    },\r\n    \"public\": {\r\n      \"type\": \"boolean\",\r\n      \"required\": true\r\n    },\r\n    \"category\": {\r\n      \"type\": \"string\"\r\n    }\r\n  },\r\n  \"validations\": [],\r\n  \"relations\": {\r\n    \"users\": {\r\n      \"type\": \"hasMany\",\r\n      \"model\": \"UserEvent\",\r\n      \"foreignKey\": \"seminaireId\",\r\n      \"through\": \"UserSeminaire\",\r\n      \"keyThrough\": \"userId\"\r\n    },\r\n    \"intervenants\": {\r\n      \"type\": \"hasMany\",\r\n      \"model\": \"Intervenant\"\r\n    },\r\n    \"sessions\": {\r\n      \"type\": \"hasMany\",\r\n      \"model\": \"Session\",\r\n      \"foreignKey\": \"seminaireId\"\r\n    },\r\n    \"feeds\": {\r\n      \"type\": \"hasMany\",\r\n      \"model\": \"Feed\",\r\n      \"foreignKey\": \"seminaireId\"\r\n    },\r\n    \"organisateur\": {\r\n      \"type\": \"belongsTo\",\r\n      \"model\": \"Organisateur\"\r\n    }\r\n  },\r\n  \"acls\": [\r\n    {\r\n      \"accessType\": \"*\",\r\n      \"principalType\": \"ROLE\",\r\n      \"principalId\": \"$everyone\",\r\n      \"permission\": \"DENY\"\r\n    },\r\n    {\r\n      \"accessType\": \"*\",\r\n      \"principalType\": \"ROLE\",\r\n      \"principalId\": \"$authenticated\",\r\n      \"permission\": \"ALLOW\"\r\n    }\r\n  ],\r\n  \"methods\": {}\r\n}\r\n````\r\n\r\nI tried to disabled the Seminaire model, but the same error come for the other models (users, etc.)\r\nI use the latest Angular2 engine (rc.4)\r\n\r\nI'll try on a empty project for testing but it's really strange :("}}
{"actor":{"display_login":"cyberbobjr"}}