{"action":"created","issue":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/3079","repository_url":"https://api.github.com/repos/typeorm/typeorm","labels_url":"https://api.github.com/repos/typeorm/typeorm/issues/3079/labels{/name}","comments_url":"https://api.github.com/repos/typeorm/typeorm/issues/3079/comments","events_url":"https://api.github.com/repos/typeorm/typeorm/issues/3079/events","html_url":"https://github.com/typeorm/typeorm/issues/3079","id":379040997,"node_id":"MDU6SXNzdWUzNzkwNDA5OTc=","number":3079,"title":"Migration Unexpected token error","user":{"login":"zefexdeveloper","id":30276092,"node_id":"MDQ6VXNlcjMwMjc2MDky","avatar_url":"https://avatars3.githubusercontent.com/u/30276092?v=4","gravatar_id":"","url":"https://api.github.com/users/zefexdeveloper","html_url":"https://github.com/zefexdeveloper","followers_url":"https://api.github.com/users/zefexdeveloper/followers","following_url":"https://api.github.com/users/zefexdeveloper/following{/other_user}","gists_url":"https://api.github.com/users/zefexdeveloper/gists{/gist_id}","starred_url":"https://api.github.com/users/zefexdeveloper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zefexdeveloper/subscriptions","organizations_url":"https://api.github.com/users/zefexdeveloper/orgs","repos_url":"https://api.github.com/users/zefexdeveloper/repos","events_url":"https://api.github.com/users/zefexdeveloper/events{/privacy}","received_events_url":"https://api.github.com/users/zefexdeveloper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-11-09T06:36:29Z","updated_at":"2018-11-09T18:40:47Z","closed_at":null,"author_association":"NONE","body":"**Issue type:**\r\n\r\n[ ] question\r\n[x] bug report\r\n[ ] feature request\r\n[ ] documentation issue\r\n\r\n**Database system/driver:**\r\n\r\n[ ] `cordova`\r\n[ ] `mongodb`\r\n[ ] `mssql`\r\n[ ] `mysql` / `mariadb`\r\n[ ] `oracle`\r\n[x] `postgres`\r\n[ ] `sqlite`\r\n[ ] `sqljs`\r\n[ ] `react-native`\r\n[ ] `expo`\r\n\r\n**TypeORM version:**\r\n\r\n[x] `latest`\r\n[ ] `@next`\r\n[ ] `0.x.x` (or put your version here)\r\n\r\n**Steps to reproduce or a small repository showing the problem:**\r\n\r\nI'm having a problem when running `typeorm migration:run` I'm getting this error:\r\n\r\n> (function (exports, require, module, __filename, __dirname) { import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';                  \r\n> SyntaxError: Unexpected token {\r\n\r\nAfter reading a few issues people suggested to run: `ts-node ./node_modules/.bin/typeorm migration:run`, but I'm also getting errors:\r\n\r\n> basedir=$(dirname \"$(echo \"$0\" | sed -e 's,\\\\,/,g')\")\r\n          ^^^^^^^\r\n> SyntaxError: missing ) after argument list"},"comment":{"url":"https://api.github.com/repos/typeorm/typeorm/issues/comments/437455124","html_url":"https://github.com/typeorm/typeorm/issues/3079#issuecomment-437455124","issue_url":"https://api.github.com/repos/typeorm/typeorm/issues/3079","id":437455124,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzQ1NTEyNA==","user":{"login":"btxtiger","id":15804690,"node_id":"MDQ6VXNlcjE1ODA0Njkw","avatar_url":"https://avatars1.githubusercontent.com/u/15804690?v=4","gravatar_id":"","url":"https://api.github.com/users/btxtiger","html_url":"https://github.com/btxtiger","followers_url":"https://api.github.com/users/btxtiger/followers","following_url":"https://api.github.com/users/btxtiger/following{/other_user}","gists_url":"https://api.github.com/users/btxtiger/gists{/gist_id}","starred_url":"https://api.github.com/users/btxtiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btxtiger/subscriptions","organizations_url":"https://api.github.com/users/btxtiger/orgs","repos_url":"https://api.github.com/users/btxtiger/repos","events_url":"https://api.github.com/users/btxtiger/events{/privacy}","received_events_url":"https://api.github.com/users/btxtiger/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T18:40:47Z","updated_at":"2018-11-09T18:40:47Z","author_association":"NONE","body":"Looks like a syntax error in your entity. If you have prettier installed, you could use it as syntax validator as well, because formatting will fail if the syntax in not correct. I'm not sure if \"standard\" editor formatters would have this behaviour. "}}
{"actor":{"display_login":"btxtiger"}}