{"action":"created","issue":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/275","repository_url":"https://api.github.com/repos/Urigo/angular2-meteor","labels_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/275/comments","events_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/275/events","html_url":"https://github.com/Urigo/angular2-meteor/issues/275","id":154932018,"number":275,"title":"Unable to import from typescript","user":{"login":"trajano","id":110627,"avatar_url":"https://avatars.githubusercontent.com/u/110627?v=3","gravatar_id":"","url":"https://api.github.com/users/trajano","html_url":"https://github.com/trajano","followers_url":"https://api.github.com/users/trajano/followers","following_url":"https://api.github.com/users/trajano/following{/other_user}","gists_url":"https://api.github.com/users/trajano/gists{/gist_id}","starred_url":"https://api.github.com/users/trajano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trajano/subscriptions","organizations_url":"https://api.github.com/users/trajano/orgs","repos_url":"https://api.github.com/users/trajano/repos","events_url":"https://api.github.com/users/trajano/events{/privacy}","received_events_url":"https://api.github.com/users/trajano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-05-15T21:41:11Z","updated_at":"2016-07-08T09:33:16Z","closed_at":"2016-07-08T09:33:16Z","body":"Just changed one of my files from `.js` to `.ts`\r\n\r\nAfter that seems that templates cannot get imported nor `/` imports\r\n\r\n    imports/ui/components/meteorSample.component.ts (10, 25): Cannot find module './meteorSample.html'.\r\n    imports/ui/components/meteorSample.component.ts (12, 25): Cannot find module '/package.json'.\r\n\r\nFrom `meteorSample.component.ts` file that looks like this\r\n\r\n```ts\r\nimport { Component } from '@angular/core'\r\nimport templateUrl from './meteorSample.html'\r\n\r\nimport packageJson from '/package.json'\r\n\r\n@Component({\r\n  selector: 'meteor-sample',\r\n  templateUrl: templateUrl.default\r\n})\r\nexport class MeteorSampleComponent {\r\n  constructor () {\r\n    this.packageJson = packageJson\r\n  }\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/comments/231317028","html_url":"https://github.com/Urigo/angular2-meteor/issues/275#issuecomment-231317028","issue_url":"https://api.github.com/repos/Urigo/angular2-meteor/issues/275","id":231317028,"user":{"login":"barbatus","id":2824096,"avatar_url":"https://avatars.githubusercontent.com/u/2824096?v=3","gravatar_id":"","url":"https://api.github.com/users/barbatus","html_url":"https://github.com/barbatus","followers_url":"https://api.github.com/users/barbatus/followers","following_url":"https://api.github.com/users/barbatus/following{/other_user}","gists_url":"https://api.github.com/users/barbatus/gists{/gist_id}","starred_url":"https://api.github.com/users/barbatus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barbatus/subscriptions","organizations_url":"https://api.github.com/users/barbatus/orgs","repos_url":"https://api.github.com/users/barbatus/repos","events_url":"https://api.github.com/users/barbatus/events{/privacy}","received_events_url":"https://api.github.com/users/barbatus/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T09:33:16Z","updated_at":"2016-07-08T09:33:16Z","body":"With next versions of angular2-compiler `import content from './foo.html'` is only possible, check out https://github.com/Urigo/angular2-meteor#static-resources. Closing"}}
{"actor":{"display_login":"barbatus"}}