{"action":"created","issue":{"url":"https://api.github.com/repos/MiroHibler/meteor-preloader/issues/8","labels_url":"https://api.github.com/repos/MiroHibler/meteor-preloader/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/MiroHibler/meteor-preloader/issues/8/comments","events_url":"https://api.github.com/repos/MiroHibler/meteor-preloader/issues/8/events","html_url":"https://github.com/MiroHibler/meteor-preloader/issues/8","id":56032058,"number":8,"title":"PreloadController is not defined","user":{"login":"perminder-klair","id":3984412,"avatar_url":"https://avatars.githubusercontent.com/u/3984412?v=3","gravatar_id":"","url":"https://api.github.com/users/perminder-klair","html_url":"https://github.com/perminder-klair","followers_url":"https://api.github.com/users/perminder-klair/followers","following_url":"https://api.github.com/users/perminder-klair/following{/other_user}","gists_url":"https://api.github.com/users/perminder-klair/gists{/gist_id}","starred_url":"https://api.github.com/users/perminder-klair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/perminder-klair/subscriptions","organizations_url":"https://api.github.com/users/perminder-klair/orgs","repos_url":"https://api.github.com/users/perminder-klair/repos","events_url":"https://api.github.com/users/perminder-klair/events{/privacy}","received_events_url":"https://api.github.com/users/perminder-klair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-30T13:16:46Z","updated_at":"2015-02-04T20:46:07Z","closed_at":null,"body":"Hello,\r\n\r\nFirst of all, thanks for your awesome work!\r\n\r\nI added package to my app, then when in route I added PreloadedController with:\r\n` controller: PreloadController,`\r\n\r\nIt returns this error:\r\n`ReferenceError: PreloadController is not defined`\r\n\r\nAny solution or suggestion?\r\n\r\nMany thanks!!"},"comment":{"url":"https://api.github.com/repos/MiroHibler/meteor-preloader/issues/comments/72935341","html_url":"https://github.com/MiroHibler/meteor-preloader/issues/8#issuecomment-72935341","issue_url":"https://api.github.com/repos/MiroHibler/meteor-preloader/issues/8","id":72935341,"user":{"login":"MiroHibler","id":1636676,"avatar_url":"https://avatars.githubusercontent.com/u/1636676?v=3","gravatar_id":"","url":"https://api.github.com/users/MiroHibler","html_url":"https://github.com/MiroHibler","followers_url":"https://api.github.com/users/MiroHibler/followers","following_url":"https://api.github.com/users/MiroHibler/following{/other_user}","gists_url":"https://api.github.com/users/MiroHibler/gists{/gist_id}","starred_url":"https://api.github.com/users/MiroHibler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MiroHibler/subscriptions","organizations_url":"https://api.github.com/users/MiroHibler/orgs","repos_url":"https://api.github.com/users/MiroHibler/repos","events_url":"https://api.github.com/users/MiroHibler/events{/privacy}","received_events_url":"https://api.github.com/users/MiroHibler/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T20:46:07Z","updated_at":"2015-02-04T20:46:07Z","body":"According to the sample code you provided, you're still loading `PreloadController` on both server- and client-side, which is not yet supported. It works only client-side.\r\n\r\nAs a quick workaround, move your `/lib/router` folder to `/client/lib/router` folder - that way you'll ensure `PreloadController` is loaded only client-side."}}