{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/4986","repository_url":"https://api.github.com/repos/driftyco/ionic","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/4986/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/4986/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/4986/events","html_url":"https://github.com/driftyco/ionic/issues/4986","id":127045077,"number":4986,"title":"Including third party libraries (like lodash) for Ionic 2 using TypeScript setup","user":{"login":"NathanWalker","id":457187,"avatar_url":"https://avatars.githubusercontent.com/u/457187?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanWalker","html_url":"https://github.com/NathanWalker","followers_url":"https://api.github.com/users/NathanWalker/followers","following_url":"https://api.github.com/users/NathanWalker/following{/other_user}","gists_url":"https://api.github.com/users/NathanWalker/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanWalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanWalker/subscriptions","organizations_url":"https://api.github.com/users/NathanWalker/orgs","repos_url":"https://api.github.com/users/NathanWalker/repos","events_url":"https://api.github.com/users/NathanWalker/events{/privacy}","received_events_url":"https://api.github.com/users/NathanWalker/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/needs%20reply","name":"needs reply","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-01-16T18:42:33Z","updated_at":"2016-10-06T15:44:15Z","closed_at":"2016-01-16T19:20:02Z","body":"I'm curious how to include third party libraries like lodash using the TypeScript setup. I see it's included as a dependency in `package.json` but I can't seem to use it...\r\nI tried:\r\n```\r\nvar _ = require('lodash');\r\n```\r\nin a component file but of course that gets a `Cannot resolve module...`\r\n\r\nWith SystemJS, I'd need something like this:\r\n```\r\nSystem.config({\r\n  \"map\": {\r\n    \"lodash\": \"npm:lodash@3.8.0\"\r\n  }\r\n});\r\n```\r\nBut with the webpack setup, I'm not entirely sure.\r\nThis would apply to numerous other third party libraries that users may want to use. What's the best way forward on this?"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/252002900","html_url":"https://github.com/driftyco/ionic/issues/4986#issuecomment-252002900","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/4986","id":252002900,"user":{"login":"klemensz","id":1116517,"avatar_url":"https://avatars.githubusercontent.com/u/1116517?v=3","gravatar_id":"","url":"https://api.github.com/users/klemensz","html_url":"https://github.com/klemensz","followers_url":"https://api.github.com/users/klemensz/followers","following_url":"https://api.github.com/users/klemensz/following{/other_user}","gists_url":"https://api.github.com/users/klemensz/gists{/gist_id}","starred_url":"https://api.github.com/users/klemensz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klemensz/subscriptions","organizations_url":"https://api.github.com/users/klemensz/orgs","repos_url":"https://api.github.com/users/klemensz/repos","events_url":"https://api.github.com/users/klemensz/events{/privacy}","received_events_url":"https://api.github.com/users/klemensz/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T15:44:15Z","updated_at":"2016-10-06T15:44:15Z","body":"Hi, I have the following problem with importing video.js in Ionic 2 RC0. https://www.npmjs.com/package/video.js \r\n1 ) `npm install --save video.js`\r\n2 ) `npm install @types/videojs --save-dev --save-exact`\r\n3 ) In the TS file: `import videojs from 'video.js`;\r\n\r\nBut it gives me the error: \"error TS2307: Cannot find module 'video.js'.\""}}
{"actor":{"display_login":"klemensz"}}