{"action":"created","issue":{"url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript/issues/3","repository_url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript","labels_url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript/issues/3/comments","events_url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript/issues/3/events","html_url":"https://github.com/xerebede/gridsome-starter-typescript/issues/3","id":460495120,"node_id":"MDU6SXNzdWU0NjA0OTUxMjA=","number":3,"title":"Importing .ts files from within .vue files throws error","user":{"login":"ManuelSch","id":19313382,"node_id":"MDQ6VXNlcjE5MzEzMzgy","avatar_url":"https://avatars1.githubusercontent.com/u/19313382?v=4","gravatar_id":"","url":"https://api.github.com/users/ManuelSch","html_url":"https://github.com/ManuelSch","followers_url":"https://api.github.com/users/ManuelSch/followers","following_url":"https://api.github.com/users/ManuelSch/following{/other_user}","gists_url":"https://api.github.com/users/ManuelSch/gists{/gist_id}","starred_url":"https://api.github.com/users/ManuelSch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManuelSch/subscriptions","organizations_url":"https://api.github.com/users/ManuelSch/orgs","repos_url":"https://api.github.com/users/ManuelSch/repos","events_url":"https://api.github.com/users/ManuelSch/events{/privacy}","received_events_url":"https://api.github.com/users/ManuelSch/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-06-25T15:30:56Z","updated_at":"2019-06-28T01:04:41Z","closed_at":"2019-06-28T01:04:41Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nwhenever I try to import something from within a .vue file, `gridsome develop` and `gridsome build` fail:\r\n\r\n```\r\nERROR  Failed to compile with 1 errors                                                                                                                                       5:23:30 PM\r\n\r\nThis relative module was not found:\r\n\r\n* ../util/validate-email in ./node_modules/ts-loader??ref--15-0!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/pages/Index.vu\r\ne?vue&type=script&lang=ts&\r\n\r\n```\r\n\r\n**Test setup to recreate the error:**\r\n\r\nCreate a new project using `gridsome create gridsome-ts https://github.com/cleitonper/gridsome-starter-typescript.git` (as described in the readme).\r\n\r\nAdd a new folder \"util\" inside \"src\", then create `validate-email.ts` inside with the following content:\r\n```\r\nexport function validateEmail(email: string): string {\r\n    return '';\r\n}\r\n```\r\n\r\nIn `src/pages/Index.vue`, change the script to the following:\r\n```\r\n<script lang=\"ts\">\r\n  import { Component, Vue } from 'vue-property-decorator';\r\n  import { validateEmail } from '../util/validate-email';\r\n\r\n  @Component\r\n  export default class HomePage extends Vue {\r\n    public validate() {\r\n        validateEmail('test@test.test');\r\n    }\r\n  }\r\n</script>\r\n```\r\n\r\nI hope you can help resolve the issue!"},"comment":{"url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript/issues/comments/506562897","html_url":"https://github.com/xerebede/gridsome-starter-typescript/issues/3#issuecomment-506562897","issue_url":"https://api.github.com/repos/xerebede/gridsome-starter-typescript/issues/3","id":506562897,"node_id":"MDEyOklzc3VlQ29tbWVudDUwNjU2Mjg5Nw==","user":{"login":"xerebede","id":2838926,"node_id":"MDQ6VXNlcjI4Mzg5MjY=","avatar_url":"https://avatars2.githubusercontent.com/u/2838926?v=4","gravatar_id":"","url":"https://api.github.com/users/xerebede","html_url":"https://github.com/xerebede","followers_url":"https://api.github.com/users/xerebede/followers","following_url":"https://api.github.com/users/xerebede/following{/other_user}","gists_url":"https://api.github.com/users/xerebede/gists{/gist_id}","starred_url":"https://api.github.com/users/xerebede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xerebede/subscriptions","organizations_url":"https://api.github.com/users/xerebede/orgs","repos_url":"https://api.github.com/users/xerebede/repos","events_url":"https://api.github.com/users/xerebede/events{/privacy}","received_events_url":"https://api.github.com/users/xerebede/received_events","type":"User","site_admin":false},"created_at":"2019-06-28T01:04:41Z","updated_at":"2019-06-28T01:04:41Z","author_association":"OWNER","body":"This issue was fixed at [`gridsome-plugin-typescript`](https://github.com/xerebede/gridsome-plugin-typescript) `v0.4.0` ([`#13`](https://github.com/xerebede/gridsome-plugin-typescript/pull/13)). The `starter` was updated too, to reflect the plugin changes. You can try it out now.\r\n\r\nThanks!"}}
{"actor":{"display_login":"xerebede"}}