{"action":"created","issue":{"url":"https://api.github.com/repos/wagerfield/nuxt-typescript/issues/14","repository_url":"https://api.github.com/repos/wagerfield/nuxt-typescript","labels_url":"https://api.github.com/repos/wagerfield/nuxt-typescript/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/wagerfield/nuxt-typescript/issues/14/comments","events_url":"https://api.github.com/repos/wagerfield/nuxt-typescript/issues/14/events","html_url":"https://github.com/wagerfield/nuxt-typescript/issues/14","id":359929431,"node_id":"MDU6SXNzdWUzNTk5Mjk0MzE=","number":14,"title":"ts loader not worknig for server middleware?","user":{"login":"sweetim","id":6851767,"node_id":"MDQ6VXNlcjY4NTE3Njc=","avatar_url":"https://avatars2.githubusercontent.com/u/6851767?v=4","gravatar_id":"","url":"https://api.github.com/users/sweetim","html_url":"https://github.com/sweetim","followers_url":"https://api.github.com/users/sweetim/followers","following_url":"https://api.github.com/users/sweetim/following{/other_user}","gists_url":"https://api.github.com/users/sweetim/gists{/gist_id}","starred_url":"https://api.github.com/users/sweetim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sweetim/subscriptions","organizations_url":"https://api.github.com/users/sweetim/orgs","repos_url":"https://api.github.com/users/sweetim/repos","events_url":"https://api.github.com/users/sweetim/events{/privacy}","received_events_url":"https://api.github.com/users/sweetim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-13T14:46:33Z","updated_at":"2018-09-24T09:05:55Z","closed_at":null,"author_association":"NONE","body":"I try to write a simple `serverMiddlerware` using a `.ts`, but it complains \r\n\r\n```\r\ninterface Student {\r\n            ^^^^^^^\r\n  SyntaxError: Unexpected identifier\r\n```\r\n\r\nfor reference my `sample.ts` file is below\r\n\r\n```\r\ninterface Student {\r\n    name: string\r\n}\r\n\r\nconst a: Student = {\r\n    name: 'hhehe'\r\n}\r\n\r\nconsole.log(a)\r\n```\r\n\r\nand in the `nuxt.config.js`, i set the serverMiddleware as below\r\n\r\n```\r\nserverMiddleware: [\r\n  '~/api/sample.ts'\r\n]\r\n```\r\n\r\nmay I know how to resolve this problem?"},"comment":{"url":"https://api.github.com/repos/wagerfield/nuxt-typescript/issues/comments/423914169","html_url":"https://github.com/wagerfield/nuxt-typescript/issues/14#issuecomment-423914169","issue_url":"https://api.github.com/repos/wagerfield/nuxt-typescript/issues/14","id":423914169,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzkxNDE2OQ==","user":{"login":"wagerfield","id":412747,"node_id":"MDQ6VXNlcjQxMjc0Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/412747?v=4","gravatar_id":"","url":"https://api.github.com/users/wagerfield","html_url":"https://github.com/wagerfield","followers_url":"https://api.github.com/users/wagerfield/followers","following_url":"https://api.github.com/users/wagerfield/following{/other_user}","gists_url":"https://api.github.com/users/wagerfield/gists{/gist_id}","starred_url":"https://api.github.com/users/wagerfield/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagerfield/subscriptions","organizations_url":"https://api.github.com/users/wagerfield/orgs","repos_url":"https://api.github.com/users/wagerfield/repos","events_url":"https://api.github.com/users/wagerfield/events{/privacy}","received_events_url":"https://api.github.com/users/wagerfield/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T09:05:55Z","updated_at":"2018-09-24T09:05:55Z","author_association":"OWNER","body":"@sweetim as per my comment in #15 I will be updating this module to support Nuxt 2.0 over the next few days, so I'll get back to you on this as and when I have done so."}}
{"actor":{"display_login":"wagerfield"}}