{"action":"opened","issue":{"url":"https://api.github.com/repos/umijs/umi/issues/216","repository_url":"https://api.github.com/repos/umijs/umi","labels_url":"https://api.github.com/repos/umijs/umi/issues/216/labels{/name}","comments_url":"https://api.github.com/repos/umijs/umi/issues/216/comments","events_url":"https://api.github.com/repos/umijs/umi/issues/216/events","html_url":"https://github.com/umijs/umi/issues/216","id":305389627,"number":216,"title":"router自动生成bug","user":{"login":"smithyj","id":9820142,"avatar_url":"https://avatars2.githubusercontent.com/u/9820142?v=4","gravatar_id":"","url":"https://api.github.com/users/smithyj","html_url":"https://github.com/smithyj","followers_url":"https://api.github.com/users/smithyj/followers","following_url":"https://api.github.com/users/smithyj/following{/other_user}","gists_url":"https://api.github.com/users/smithyj/gists{/gist_id}","starred_url":"https://api.github.com/users/smithyj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smithyj/subscriptions","organizations_url":"https://api.github.com/users/smithyj/orgs","repos_url":"https://api.github.com/users/smithyj/repos","events_url":"https://api.github.com/users/smithyj/events{/privacy}","received_events_url":"https://api.github.com/users/smithyj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-15T02:01:42Z","updated_at":"2018-03-15T02:01:42Z","closed_at":null,"author_association":"NONE","body":".umi/router.js 生成的router\r\n```\r\n<Router history={window.g_history}>\r\n  <Layout><Switch>\r\n    <Route exact path=\"/403\" component={() => React.createElement(require('/Users/yyj/Docker/www/frontend/oa.yangyj.com/node_modules/umi-build-dev/lib/Compiling.js').default, { route: '/403' })} />\r\n    <Route exact path=\"/404\" component={() => React.createElement(require('/Users/yyj/Docker/www/frontend/oa.yangyj.com/node_modules/umi-build-dev/lib/Compiling.js').default, { route: '/404' })} />\r\n    <Route exact path=\"/500\" component={() => React.createElement(require('/Users/yyj/Docker/www/frontend/oa.yangyj.com/node_modules/umi-build-dev/lib/Compiling.js').default, { route: '/500' })} />\r\n    <Route exact path=\"/blog/detail/:id?\" component={require('../blog/detail/$id?.js').default} />\r\n    <Route exact path=\"/blog/list\" component={require('../blog/list/page.js').default} />\r\n    <Route exact path=\"/\" component={require('../index.js').default} />\r\n    <Route component={require('/Users/yyj/Docker/www/frontend/oa.yangyj.com/src/pages/404.js').default} />\r\n  </Switch></Layout>\r\n</Router>\r\n  );\r\n```\r\n\r\n但是报错\r\n```\r\n./src/pages/.umi/router.js\r\nModule not found: Can't resolve '../blog/detail/$id?.js' in '/Users/yyj/Docker/www/frontend/oa.yangyj.com/src/pages/.umi'\r\n```\r\n"}}
{"actor":{"display_login":"smithyj"}}