{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/jest/issues/527","labels_url":"https://api.github.com/repos/facebook/jest/issues/527/labels{/name}","comments_url":"https://api.github.com/repos/facebook/jest/issues/527/comments","events_url":"https://api.github.com/repos/facebook/jest/issues/527/events","html_url":"https://github.com/facebook/jest/issues/527","id":109487379,"number":527,"title":"Cannot find relative to Webpack root dir module","user":{"login":"Poplava","id":3377054,"avatar_url":"https://avatars.githubusercontent.com/u/3377054?v=3","gravatar_id":"","url":"https://api.github.com/users/Poplava","html_url":"https://github.com/Poplava","followers_url":"https://api.github.com/users/Poplava/followers","following_url":"https://api.github.com/users/Poplava/following{/other_user}","gists_url":"https://api.github.com/users/Poplava/gists{/gist_id}","starred_url":"https://api.github.com/users/Poplava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Poplava/subscriptions","organizations_url":"https://api.github.com/users/Poplava/orgs","repos_url":"https://api.github.com/users/Poplava/repos","events_url":"https://api.github.com/users/Poplava/events{/privacy}","received_events_url":"https://api.github.com/users/Poplava/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T13:05:38Z","updated_at":"2015-10-06T01:09:04Z","closed_at":"2015-10-06T01:09:04Z","body":"I use Webpack.\r\n\r\nIt has \"resolve\" config like this:\r\n\r\n```js\r\nresolve: {\r\n  root: path.resolve('./src'),\r\n  extensions: ['', '.js', '.jsx', '.json'],\r\n  modulesDirectories: ['node_modules']\r\n}\r\n```\r\n\r\nwhen I'm trying to require a relative module to the root path (with webpack it requires ```src/apps/foo/bar.js```)\r\n```\r\nrequire('apps/foo/bar');\r\n```\r\n\r\njest are falling with exception:\r\n```\r\nCannot find module 'apps/foo/bar' from...\r\n```\r\n\r\nDo I must use \"require\" with the file-to-file relations only?\r\n\r\n#### UPDATE:\r\n\r\nI created a repo with simple example of my issue: https://github.com/Poplava/jest-app"}}