{"action":"created","issue":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/282","repository_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy","labels_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/282/labels{/name}","comments_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/282/comments","events_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/282/events","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/282","id":219873244,"number":282,"title":"factory-guy appears to be incompatible with Fastboot","user":{"login":"gabrielgrant","id":493968,"avatar_url":"https://avatars2.githubusercontent.com/u/493968?v=4","gravatar_id":"","url":"https://api.github.com/users/gabrielgrant","html_url":"https://github.com/gabrielgrant","followers_url":"https://api.github.com/users/gabrielgrant/followers","following_url":"https://api.github.com/users/gabrielgrant/following{/other_user}","gists_url":"https://api.github.com/users/gabrielgrant/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielgrant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielgrant/subscriptions","organizations_url":"https://api.github.com/users/gabrielgrant/orgs","repos_url":"https://api.github.com/users/gabrielgrant/repos","events_url":"https://api.github.com/users/gabrielgrant/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielgrant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-04-06T11:50:48Z","updated_at":"2017-10-21T22:27:57Z","closed_at":null,"author_association":"NONE","body":"Factory guy's usage of Mockjax seems to cause Fastboot to fail with:\r\n\r\n```\r\nCannot read property 'ajax' of undefined\r\nTypeError: Cannot read property 'ajax' of undefined\r\n```\r\n\r\nThe error appears to come from [this line in mockjax](https://github.com/jakerella/jquery-mockjax/blob/13d517cfde612ef89352415a49efbc13e194a7a0/src/jquery.mockjax.js#L26). \r\n\r\n[Apparently \"to use Mockjax as a Node module you MUST provide the factory with a valid version of jQuery and a window object\"](https://github.com/jakerella/jquery-mockjax/blob/13d517cfde612ef89352415a49efbc13e194a7a0/src/jquery.mockjax.js#L13)\r\n\r\nNot sure that it's a good idea to get into shimming jquery functionality in fastboot, though. So maybe best to just [avoid pulling mockjax into the fastboot build at all by adding a guard](https://github.com/ember-fastboot/ember-cli-fastboot/issues/133#issuecomment-207548884) to [the `app.import() call`](https://github.com/danielspaniel/ember-data-factory-guy/blob/master/index.js#L37) (or adjusting the conditions on [the existing guard](https://github.com/danielspaniel/ember-data-factory-guy/blob/master/index.js#L48))"},"comment":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/comments/338436706","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/282#issuecomment-338436706","issue_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/282","id":338436706,"user":{"login":"roschaefer","id":2110676,"avatar_url":"https://avatars1.githubusercontent.com/u/2110676?v=4","gravatar_id":"","url":"https://api.github.com/users/roschaefer","html_url":"https://github.com/roschaefer","followers_url":"https://api.github.com/users/roschaefer/followers","following_url":"https://api.github.com/users/roschaefer/following{/other_user}","gists_url":"https://api.github.com/users/roschaefer/gists{/gist_id}","starred_url":"https://api.github.com/users/roschaefer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roschaefer/subscriptions","organizations_url":"https://api.github.com/users/roschaefer/orgs","repos_url":"https://api.github.com/users/roschaefer/repos","events_url":"https://api.github.com/users/roschaefer/events{/privacy}","received_events_url":"https://api.github.com/users/roschaefer/received_events","type":"User","site_admin":false},"created_at":"2017-10-21T22:27:57Z","updated_at":"2017-10-21T22:27:57Z","author_association":"NONE","body":"I found https://github.com/ember-fastboot/ember-cli-fastboot/issues/413\r\nand https://github.com/kratiahuja/fastboot-transform\r\n\r\nIs it relevant for our problem?"}}
{"actor":{"display_login":"roschaefer"}}