{"action":"opened","issue":{"url":"https://api.github.com/repos/yoshuawuyts/sheet-router/issues/66","repository_url":"https://api.github.com/repos/yoshuawuyts/sheet-router","labels_url":"https://api.github.com/repos/yoshuawuyts/sheet-router/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/yoshuawuyts/sheet-router/issues/66/comments","events_url":"https://api.github.com/repos/yoshuawuyts/sheet-router/issues/66/events","html_url":"https://github.com/yoshuawuyts/sheet-router/issues/66","id":192176372,"number":66,"title":"Route doesn't match on file://","user":{"login":"rahatarmanahmed","id":3174006,"avatar_url":"https://avatars.githubusercontent.com/u/3174006?v=3","gravatar_id":"","url":"https://api.github.com/users/rahatarmanahmed","html_url":"https://github.com/rahatarmanahmed","followers_url":"https://api.github.com/users/rahatarmanahmed/followers","following_url":"https://api.github.com/users/rahatarmanahmed/following{/other_user}","gists_url":"https://api.github.com/users/rahatarmanahmed/gists{/gist_id}","starred_url":"https://api.github.com/users/rahatarmanahmed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahatarmanahmed/subscriptions","organizations_url":"https://api.github.com/users/rahatarmanahmed/orgs","repos_url":"https://api.github.com/users/rahatarmanahmed/repos","events_url":"https://api.github.com/users/rahatarmanahmed/events{/privacy}","received_events_url":"https://api.github.com/users/rahatarmanahmed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-29T03:05:45Z","updated_at":"2016-11-29T03:05:45Z","closed_at":null,"body":"Ran into this issue using `choo@4.0.1-0` in Electron.\r\n\r\n```\r\nUncaught Error: route '/Users/rahat/Downloads/test/test.html' did not match\r\n```\r\n\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n  <head>\r\n    <meta charset=\"utf-8\">\r\n    <title></title>\r\n  </head>\r\n  <body>\r\n    <script>\r\n      const choo = require('choo')\r\n      const html = require('choo/html')\r\n\r\n      const app = choo()\r\n      app.model({\r\n        state: {\r\n          value: 'wow'\r\n        }\r\n      })\r\n\r\n      const view = state => html`<div>${state.value}</div>`\r\n\r\n      // choo@4.0.1-0\r\n      app.router('/', [\r\n        ['/', view]\r\n      ])\r\n\r\n      // choo@3.3.0\r\n      // app.router(route => route('/', view))\r\n\r\n      const tree = app.start()\r\n      document.body.appendChild(tree)\r\n    </script>\r\n  </body>\r\n</html>\r\n\r\n```\r\n\r\nTo reproduce:\r\n1. `npm install -g electron`\r\n2. `electron test.html` (the test html above)\r\n\r\nYou could also bundle the above JS and load it in Chrome with `file://`\r\n"}}
{"actor":{"display_login":"rahatarmanahmed"}}