{"action":"created","issue":{"url":"https://api.github.com/repos/kuflash/react-router-sitemap/issues/81","repository_url":"https://api.github.com/repos/kuflash/react-router-sitemap","labels_url":"https://api.github.com/repos/kuflash/react-router-sitemap/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/kuflash/react-router-sitemap/issues/81/comments","events_url":"https://api.github.com/repos/kuflash/react-router-sitemap/issues/81/events","html_url":"https://github.com/kuflash/react-router-sitemap/issues/81","id":379779894,"node_id":"MDU6SXNzdWUzNzk3Nzk4OTQ=","number":81,"title":"TypeError: (0 , m.createRoutes) is not a function","user":{"login":"marcoseoane","id":28088807,"node_id":"MDQ6VXNlcjI4MDg4ODA3","avatar_url":"https://avatars0.githubusercontent.com/u/28088807?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoseoane","html_url":"https://github.com/marcoseoane","followers_url":"https://api.github.com/users/marcoseoane/followers","following_url":"https://api.github.com/users/marcoseoane/following{/other_user}","gists_url":"https://api.github.com/users/marcoseoane/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoseoane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoseoane/subscriptions","organizations_url":"https://api.github.com/users/marcoseoane/orgs","repos_url":"https://api.github.com/users/marcoseoane/repos","events_url":"https://api.github.com/users/marcoseoane/events{/privacy}","received_events_url":"https://api.github.com/users/marcoseoane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-12T13:36:38Z","updated_at":"2018-11-12T16:39:37Z","closed_at":null,"author_association":"NONE","body":"Node Version: v8.12.0\r\nCreate-React-App\r\n\r\nI have replicated the way it is used in the example, and get the error mentioned in the issue title, if there is any information that I have failed to provide that would be of use to you please notify me and I will take a look and list here.\r\n\r\nroutes.jsx \r\n`import React from 'react';\r\nimport { Route, Redirect } from 'react-router' export default (\r\n\t<Route>\r\n\t\t<Route path='/' />\r\n\t\t<Route path='/about' />\r\n\t\t<Route path='/projects'>\r\n\t\t\t<Route path=':projectName'>\r\n\t\t\t\t<Route path='view' />\r\n\t\t\t</Route>\r\n\t\t</Route>\r\n\t\t<Route path='/contacts' />\r\n\t\t<Route path='/auth' />\r\n\t\t<Redirect from='/home' to='/' />\r\n\t\t<Route path='*' />\r\n\t</Route>\r\n);`\r\n\r\nsitemap-builder.js\r\n\r\n`require('babel-register') const router = require('./routes').default const Sitemap = require('react-router-sitemap').default\r\n(\r\n\tnew Sitemap(router)\r\n\t\t.build('http://recruitd.com')\r\n\t\t.save('./sitemap.xml')\r\n)`\r\n\r\n.babelrc \r\n`{\r\n\t\"ignore\": [\r\n\t\t\"node_modules/**/*\"\r\n\t],\r\n\t\"presets\": [\r\n\t\t\"es2015\",\r\n\t\t\"react\"\r\n\t]\r\n}`\r\n\r\n![screen shot 2018-11-12 at 13 35 52](https://user-images.githubusercontent.com/28088807/48350719-f9253380-e67f-11e8-8fdc-34cdab601fea.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/kuflash/react-router-sitemap/issues/comments/437947935","html_url":"https://github.com/kuflash/react-router-sitemap/issues/81#issuecomment-437947935","issue_url":"https://api.github.com/repos/kuflash/react-router-sitemap/issues/81","id":437947935,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzk0NzkzNQ==","user":{"login":"marcoseoane","id":28088807,"node_id":"MDQ6VXNlcjI4MDg4ODA3","avatar_url":"https://avatars0.githubusercontent.com/u/28088807?v=4","gravatar_id":"","url":"https://api.github.com/users/marcoseoane","html_url":"https://github.com/marcoseoane","followers_url":"https://api.github.com/users/marcoseoane/followers","following_url":"https://api.github.com/users/marcoseoane/following{/other_user}","gists_url":"https://api.github.com/users/marcoseoane/gists{/gist_id}","starred_url":"https://api.github.com/users/marcoseoane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcoseoane/subscriptions","organizations_url":"https://api.github.com/users/marcoseoane/orgs","repos_url":"https://api.github.com/users/marcoseoane/repos","events_url":"https://api.github.com/users/marcoseoane/events{/privacy}","received_events_url":"https://api.github.com/users/marcoseoane/received_events","type":"User","site_admin":false},"created_at":"2018-11-12T16:39:37Z","updated_at":"2018-11-12T16:39:37Z","author_association":"NONE","body":"> @marcoseoane what version `react-router` do you use?\r\n\r\n \"react-router\": \"^4.2.0\","}}
{"actor":{"display_login":"marcoseoane"}}