{"action":"opened","issue":{"url":"https://api.github.com/repos/reapp/reapp/issues/36","labels_url":"https://api.github.com/repos/reapp/reapp/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/reapp/reapp/issues/36/comments","events_url":"https://api.github.com/repos/reapp/reapp/issues/36/events","html_url":"https://github.com/reapp/reapp/issues/36","id":63223001,"number":36,"title":"Can't figure out the problem with routes","user":{"login":"apeacox","id":142753,"avatar_url":"https://avatars.githubusercontent.com/u/142753?v=3","gravatar_id":"","url":"https://api.github.com/users/apeacox","html_url":"https://github.com/apeacox","followers_url":"https://api.github.com/users/apeacox/followers","following_url":"https://api.github.com/users/apeacox/following{/other_user}","gists_url":"https://api.github.com/users/apeacox/gists{/gist_id}","starred_url":"https://api.github.com/users/apeacox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apeacox/subscriptions","organizations_url":"https://api.github.com/users/apeacox/orgs","repos_url":"https://api.github.com/users/apeacox/repos","events_url":"https://api.github.com/users/apeacox/events{/privacy}","received_events_url":"https://api.github.com/users/apeacox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-20T12:54:27Z","updated_at":"2015-03-20T12:54:27Z","closed_at":null,"body":"Hello there,\r\n\r\nI'm to playing with reapp and trying to port a simple react app here. I have created a new app and changed the routes in this way:\r\n\r\n```\r\nmodule.exports = ({ routes, route }) =>\r\n  routes(require,\r\n    route('app', '/', { dir: '' },\r\n      route('dashboard', '/',\r\n        route('notifications')\r\n      )\r\n    )\r\n  );\r\n```\r\n\r\nbut when it gets transpiled, I get this warning:\r\n```\r\nWARNING in ./app/routes.js\r\nCritical dependencies:\r\n6:16-23 require function is used in a way, in which dependencies cannot be statically extracted\r\n @ ./app/routes.js 6:16-23\r\n```\r\n\r\nIf I try the app in the browser, I can see the same message in console and, of course, it doesn't work even if the sub-components are provided.\r\n\r\nFrankly, I can't figure out what's wrong. Can someone help me clearing this? Thanks in advance :-)"}}