{"action":"created","issue":{"url":"https://api.github.com/repos/NervJS/taro/issues/1234","repository_url":"https://api.github.com/repos/NervJS/taro","labels_url":"https://api.github.com/repos/NervJS/taro/issues/1234/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/taro/issues/1234/comments","events_url":"https://api.github.com/repos/NervJS/taro/issues/1234/events","html_url":"https://github.com/NervJS/taro/issues/1234","id":383879166,"node_id":"MDU6SXNzdWUzODM4NzkxNjY=","number":1234,"title":"自定义组件中redux连接编译错误","user":{"login":"junhwong","id":8044424,"node_id":"MDQ6VXNlcjgwNDQ0MjQ=","avatar_url":"https://avatars0.githubusercontent.com/u/8044424?v=4","gravatar_id":"","url":"https://api.github.com/users/junhwong","html_url":"https://github.com/junhwong","followers_url":"https://api.github.com/users/junhwong/followers","following_url":"https://api.github.com/users/junhwong/following{/other_user}","gists_url":"https://api.github.com/users/junhwong/gists{/gist_id}","starred_url":"https://api.github.com/users/junhwong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junhwong/subscriptions","organizations_url":"https://api.github.com/users/junhwong/orgs","repos_url":"https://api.github.com/users/junhwong/repos","events_url":"https://api.github.com/users/junhwong/events{/privacy}","received_events_url":"https://api.github.com/users/junhwong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-23T16:25:55Z","updated_at":"2018-11-26T13:02:49Z","closed_at":null,"author_association":"NONE","body":"\r\n**问题描述**\r\n小程序端：\r\n\r\n```\r\n错误  组件编译  组件src/components/layout.js编译失败！\r\n{ SyntaxError: unknown: Unexpected token, expected { (6:7)\r\n  4 | import { login } from \"../actions/index.js\";\r\n  5 |\r\n> 6 | export @connect(({ user }) => ({\r\n    |        ^\r\n  7 |   user\r\n  8 | }), (dispatch, x) => ({\r\n```\r\n\r\n\r\n**复现步骤**\r\n在自定义组件中连接（非页面），想要做一个通用的登录检查，诸如此类。\r\n\r\n\r\n**系统信息**\r\n - Taro 版本 [1.1.8]，虽然不是最新但看了下github 没发现有此类问题的提交。\r\n"},"comment":{"url":"https://api.github.com/repos/NervJS/taro/issues/comments/441631289","html_url":"https://github.com/NervJS/taro/issues/1234#issuecomment-441631289","issue_url":"https://api.github.com/repos/NervJS/taro/issues/1234","id":441631289,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTYzMTI4OQ==","user":{"login":"luckyadam","id":1782542,"node_id":"MDQ6VXNlcjE3ODI1NDI=","avatar_url":"https://avatars2.githubusercontent.com/u/1782542?v=4","gravatar_id":"","url":"https://api.github.com/users/luckyadam","html_url":"https://github.com/luckyadam","followers_url":"https://api.github.com/users/luckyadam/followers","following_url":"https://api.github.com/users/luckyadam/following{/other_user}","gists_url":"https://api.github.com/users/luckyadam/gists{/gist_id}","starred_url":"https://api.github.com/users/luckyadam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luckyadam/subscriptions","organizations_url":"https://api.github.com/users/luckyadam/orgs","repos_url":"https://api.github.com/users/luckyadam/repos","events_url":"https://api.github.com/users/luckyadam/events{/privacy}","received_events_url":"https://api.github.com/users/luckyadam/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T13:02:49Z","updated_at":"2018-11-26T13:02:49Z","author_association":"CONTRIBUTOR","body":"> @luckyadam 路径那个问题我用的就是最新版本 v1.2.0-beta.2\r\n\r\n是加了哪个包路径没有替换？"}}
{"actor":{"display_login":"luckyadam"}}