{"action":"created","issue":{"url":"https://api.github.com/repos/wallabyjs/public/issues/499","repository_url":"https://api.github.com/repos/wallabyjs/public","labels_url":"https://api.github.com/repos/wallabyjs/public/issues/499/labels{/name}","comments_url":"https://api.github.com/repos/wallabyjs/public/issues/499/comments","events_url":"https://api.github.com/repos/wallabyjs/public/issues/499/events","html_url":"https://github.com/wallabyjs/public/issues/499","id":139083583,"number":499,"title":"TypeError: 'undefined' is not an object (evaluating 'window.__moduleBundler.loadTests')","user":{"login":"xavierhaurie","id":17297275,"avatar_url":"https://avatars.githubusercontent.com/u/17297275?v=3","gravatar_id":"","url":"https://api.github.com/users/xavierhaurie","html_url":"https://github.com/xavierhaurie","followers_url":"https://api.github.com/users/xavierhaurie/followers","following_url":"https://api.github.com/users/xavierhaurie/following{/other_user}","gists_url":"https://api.github.com/users/xavierhaurie/gists{/gist_id}","starred_url":"https://api.github.com/users/xavierhaurie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xavierhaurie/subscriptions","organizations_url":"https://api.github.com/users/xavierhaurie/orgs","repos_url":"https://api.github.com/users/xavierhaurie/repos","events_url":"https://api.github.com/users/xavierhaurie/events{/privacy}","received_events_url":"https://api.github.com/users/xavierhaurie/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-03-07T20:22:20Z","updated_at":"2016-03-09T23:33:47Z","closed_at":"2016-03-09T23:33:46Z","body":"### Issue description or question\r\nI am 99% sure this issue has been solved before, but I just can't find the solution after hours or searching. In fact I am totally lost right now :-)\r\n\r\nI get errors like this:\r\n\r\nPostprocessor run failure: Cannot find module '../../main/webapp/jsx/normalizers/DetailsNormalizer' from './src/test/karma'\r\n\r\nNote that in the Wallaby console the error message refers to a cached file:\r\n\r\n```\r\nMon, 07 Mar 2016 20:19:55 GMT wallaby:project Error: Cannot find module '../../main/webapp/jsx/normalizers/DetailsNormalizer' from '/Users/xavier/Library/Caches/IntelliJIdea15/wallaby/projects/2632598fefbb29ec/instrumented/src/test/karma'\r\n  at /Users/xavier/IdeaProjects/protocol-review/web/node_modules/resolve/lib/async.js:55:21\r\n  at load (/Users/xavier/IdeaProjects/protocol-review/web/node_modules/resolve/lib/async.js:69:43)\r\n  at onex (/Users/xavier/IdeaProjects/protocol-review/web/node_modules/resolve/lib/async.js:92:31)\r\n  at /Users/xavier/IdeaProjects/protocol-review/web/node_modules/resolve/lib/async.js:22:47\r\n  at FSReqWrap.oncomplete (fs.js:82:15)\r\n\r\n```\r\n\r\n*If I comment out the postProcessor setting in the config, then I get this error instead:*\r\n\r\n`TypeError: 'undefined' is not an object (evaluating 'window.__moduleBundler.loadTests')`\r\n\r\nI imagine that the postProcessor errors are masking the latter error.. \r\n\r\nWhat to do?\r\n\r\nThank you in advance!\r\n\r\n### Wallaby.js configuration file\r\n\r\n```\r\nvar wallabify = require('wallabify');\r\nvar wallabyPostprocessor = wallabify({\r\n        // browserify options, such as\r\n        // insertGlobals: false\r\n    }\r\n    // you may also pass an initializer function to chain other\r\n    // browserify options, such as transformers\r\n    // , b => b.exclude('mkdirp').transform(require('babelify'))\r\n);\r\n\r\nmodule.exports = function (wallaby) {\r\n    return {\r\n        \"files\": [\r\n            {pattern: 'src/main/webapp/jsx/**/*.js', load: false},\r\n            {pattern: 'src/main/webapp/jsx/**/*.jsx', load: false}\r\n        ],\r\n\r\n        \"tests\": [\r\n            {pattern: \"src/test/karma/**/*.js\", load: false},\r\n            {pattern: \"src/test/karma/**/*.jsx\", load: false}\r\n        ],\r\n\r\n        \"testFramework\": \"jasmine\",\r\n\r\n        \"compilers\": {\r\n            \"**/*.js\": wallaby.compilers.babel({\r\n                presets: ['es2015', 'react', \"stage-0\"]\r\n            }),\r\n            \"**/*.jsx\": wallaby.compilers.babel({\r\n                presets: ['es2015', 'react', \"stage-0\"]\r\n            })\r\n        },\r\n\r\n        bootstrap: function () {\r\n            // required to trigger tests loading\r\n            window.__moduleBundler.loadTests();\r\n        },\r\n\r\n        postprocessor: wallabyPostprocessor,\r\n\r\n        \"debug\": true\r\n    };\r\n};\r\n```\r\n\r\n### Code editor or IDE name and version\r\n\r\nIntelliJ IDEA v15\r\n\r\n### OS name and version\r\n\r\nOSX\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wallabyjs/public/issues/comments/194567348","html_url":"https://github.com/wallabyjs/public/issues/499#issuecomment-194567348","issue_url":"https://api.github.com/repos/wallabyjs/public/issues/499","id":194567348,"user":{"login":"ArtemGovorov","id":979966,"avatar_url":"https://avatars.githubusercontent.com/u/979966?v=3","gravatar_id":"","url":"https://api.github.com/users/ArtemGovorov","html_url":"https://github.com/ArtemGovorov","followers_url":"https://api.github.com/users/ArtemGovorov/followers","following_url":"https://api.github.com/users/ArtemGovorov/following{/other_user}","gists_url":"https://api.github.com/users/ArtemGovorov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArtemGovorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArtemGovorov/subscriptions","organizations_url":"https://api.github.com/users/ArtemGovorov/orgs","repos_url":"https://api.github.com/users/ArtemGovorov/repos","events_url":"https://api.github.com/users/ArtemGovorov/events{/privacy}","received_events_url":"https://api.github.com/users/ArtemGovorov/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T23:33:46Z","updated_at":"2016-03-09T23:33:46Z","body":"> If am using Phantom-prebuilt v2.1.5 so should not have needed the polyfill.\r\n\r\nI don't see it configured in the wallaby config that you have shared. Did you [specify it in your `env` setting like described here](http://wallabyjs.com/docs/integration/phantomjs2.html)?"}}