{"action":"opened","issue":{"url":"https://api.github.com/repos/jkuri/ng2-uploader/issues/60","repository_url":"https://api.github.com/repos/jkuri/ng2-uploader","labels_url":"https://api.github.com/repos/jkuri/ng2-uploader/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/jkuri/ng2-uploader/issues/60/comments","events_url":"https://api.github.com/repos/jkuri/ng2-uploader/issues/60/events","html_url":"https://github.com/jkuri/ng2-uploader/issues/60","id":170615250,"number":60,"title":"TypeScript compilation problem","user":{"login":"moumoune","id":7457308,"avatar_url":"https://avatars.githubusercontent.com/u/7457308?v=3","gravatar_id":"","url":"https://api.github.com/users/moumoune","html_url":"https://github.com/moumoune","followers_url":"https://api.github.com/users/moumoune/followers","following_url":"https://api.github.com/users/moumoune/following{/other_user}","gists_url":"https://api.github.com/users/moumoune/gists{/gist_id}","starred_url":"https://api.github.com/users/moumoune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moumoune/subscriptions","organizations_url":"https://api.github.com/users/moumoune/orgs","repos_url":"https://api.github.com/users/moumoune/repos","events_url":"https://api.github.com/users/moumoune/events{/privacy}","received_events_url":"https://api.github.com/users/moumoune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-11T10:33:09Z","updated_at":"2016-08-11T10:33:09Z","closed_at":null,"body":"Hi, I'm going crazy.\r\n\r\nMy application still does not recognize the Directive, while the example code works fine.\r\nHere's what I've done now:\r\n\r\n`system.config.js`\r\n```\r\nvar map = {\r\n   ...\r\n    'ng2-uploader':               'node_modules/ng2-uploader',\r\n  };\r\n\r\n  var packages = {\r\n     ...\r\n    'ng2-uploader':               { main: 'ng2-uploader.js', defaultExtension: 'js' },\r\n  };\r\n```\r\n\r\n`my component`\r\n```\r\nimport { UPLOAD_DIRECTIVES } from 'ng2-uploader';\r\n\r\ndirectives: [UPLOAD_DIRECTIVES]\r\n```\r\n\r\nIt still does not work. The error is in my opinion a compilation problem. Let me explain:\r\n\r\n`Code exemple of ng2-uploader.js (into node_modules/ng2-uploader)`\r\n```\r\n\"use strict\";\r\nfunction __export(m) {\r\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\nvar ng2_uploader_1 = require('./src/services/ng2-uploader');\r\nvar ng_file_select_1 = require('./src/directives/ng-file-select');\r\nvar ng_file_drop_1 = require('./src/directives/ng-file-drop');\r\n__export(require('./src/services/ng2-uploader'));\r\n__export(require('./src/directives/ng-file-select'));\r\n__export(require('./src/directives/ng-file-drop'));\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nexports.default = {\r\n    directives: [ng_file_select_1.NgFileSelect, ng_file_drop_1.NgFileDrop],\r\n    providers: [ng2_uploader_1.Ng2Uploader]\r\n};\r\nexports.UPLOAD_DIRECTIVES = [ng_file_select_1.NgFileSelect, ng_file_drop_1.NgFileDrop];\r\n//# sourceMappingURL=ng2-uploader.js.map\r\n```\r\n\r\n`My app code of ng2-uploader.js (into node_modules/ng2-uploader)`\r\n```\r\nimport { Ng2Uploader } from './src/services/ng2-uploader';\r\nimport { NgFileSelect } from './src/directives/ng-file-select';\r\nimport { NgFileDrop } from './src/directives/ng-file-drop';\r\nexport * from './src/services/ng2-uploader';\r\nexport * from './src/directives/ng-file-select';\r\nexport * from './src/directives/ng-file-drop';\r\nexport default {\r\n    directives: [NgFileSelect, NgFileDrop],\r\n    providers: [Ng2Uploader]\r\n};\r\nexport var UPLOAD_DIRECTIVES = [NgFileSelect, NgFileDrop];\r\n//# sourceMappingURL=/Users/jan/Dev/github/ng2-uploader/ng2-uploader.js.map\r\n```\r\n\r\nIt seems that typescript has not properly compiled library files. Here's my `tsconfig.json`:\r\n```\r\n{\r\n  \"compilerOptions\": {\r\n    \"target\": \"es5\",\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    \"outDir\": \"dist/\"\r\n  }\r\n}\r\n```\r\n\r\nI do not see the problem. Anyone has had this error? thank you for any help :)"}}
{"actor":{"display_login":"moumoune"}}