{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/localForage/issues/459","labels_url":"https://api.github.com/repos/mozilla/localForage/issues/459/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/localForage/issues/459/comments","events_url":"https://api.github.com/repos/mozilla/localForage/issues/459/events","html_url":"https://github.com/mozilla/localForage/issues/459","id":110418825,"number":459,"title":"localforage loaded through Systemjs AMD module loading does not work","user":{"login":"jagandecapri","id":5851344,"avatar_url":"https://avatars.githubusercontent.com/u/5851344?v=3","gravatar_id":"","url":"https://api.github.com/users/jagandecapri","html_url":"https://github.com/jagandecapri","followers_url":"https://api.github.com/users/jagandecapri/followers","following_url":"https://api.github.com/users/jagandecapri/following{/other_user}","gists_url":"https://api.github.com/users/jagandecapri/gists{/gist_id}","starred_url":"https://api.github.com/users/jagandecapri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagandecapri/subscriptions","organizations_url":"https://api.github.com/users/jagandecapri/orgs","repos_url":"https://api.github.com/users/jagandecapri/repos","events_url":"https://api.github.com/users/jagandecapri/events{/privacy}","received_events_url":"https://api.github.com/users/jagandecapri/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-08T10:30:24Z","updated_at":"2015-10-08T10:34:41Z","closed_at":null,"body":"I am using systemjs to load localforage to be used in AMD styled module.\r\n\r\nMy config is as such:\r\n\r\n```\r\n  System.config({\r\n   .....\r\n    paths: {\r\n      localforage: 'bower_components/localforage/dist/localforage.js'\r\n    }\r\n   .....\r\n  });\r\n```\r\n\r\nand I am trying to use it as below:\r\n\r\n```\r\ndefine(['localforage'], function(lf){\r\n});\r\n```\r\n\r\nHowever, this throws an error saying \r\n`Uncaught (in promise) ReferenceError: require is not defined(…) localforage.js:2616`\r\n\r\nNot sure how to get around this. Any help would be greatly appreciated. Thanks."},"comment":{"url":"https://api.github.com/repos/mozilla/localForage/issues/comments/146490385","html_url":"https://github.com/mozilla/localForage/issues/459#issuecomment-146490385","issue_url":"https://api.github.com/repos/mozilla/localForage/issues/459","id":146490385,"user":{"login":"jagandecapri","id":5851344,"avatar_url":"https://avatars.githubusercontent.com/u/5851344?v=3","gravatar_id":"","url":"https://api.github.com/users/jagandecapri","html_url":"https://github.com/jagandecapri","followers_url":"https://api.github.com/users/jagandecapri/followers","following_url":"https://api.github.com/users/jagandecapri/following{/other_user}","gists_url":"https://api.github.com/users/jagandecapri/gists{/gist_id}","starred_url":"https://api.github.com/users/jagandecapri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jagandecapri/subscriptions","organizations_url":"https://api.github.com/users/jagandecapri/orgs","repos_url":"https://api.github.com/users/jagandecapri/repos","events_url":"https://api.github.com/users/jagandecapri/events{/privacy}","received_events_url":"https://api.github.com/users/jagandecapri/received_events","type":"User","site_admin":false},"created_at":"2015-10-08T10:34:41Z","updated_at":"2015-10-08T10:34:41Z","body":"Hi @tofumatt , I am using    v1.2.10. I downloaded using bower. `bower install localforage`\r\n\r\nI have not tried the master version yet.\r\n"}}