{"action":"created","issue":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/1434","repository_url":"https://api.github.com/repos/yarnpkg/yarn","labels_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1434/labels{/name}","comments_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1434/comments","events_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1434/events","html_url":"https://github.com/yarnpkg/yarn/issues/1434","id":185090761,"number":1434,"title":"Cannot resolve module after clean install","user":{"login":"zaalbarxx","id":3301242,"avatar_url":"https://avatars.githubusercontent.com/u/3301242?v=3","gravatar_id":"","url":"https://api.github.com/users/zaalbarxx","html_url":"https://github.com/zaalbarxx","followers_url":"https://api.github.com/users/zaalbarxx/followers","following_url":"https://api.github.com/users/zaalbarxx/following{/other_user}","gists_url":"https://api.github.com/users/zaalbarxx/gists{/gist_id}","starred_url":"https://api.github.com/users/zaalbarxx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zaalbarxx/subscriptions","organizations_url":"https://api.github.com/users/zaalbarxx/orgs","repos_url":"https://api.github.com/users/zaalbarxx/repos","events_url":"https://api.github.com/users/zaalbarxx/events{/privacy}","received_events_url":"https://api.github.com/users/zaalbarxx/received_events","type":"User","site_admin":false},"labels":[{"id":459442332,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/install%20issue","name":"install issue","color":"0e8a16","default":false},{"id":461730541,"url":"https://api.github.com/repos/yarnpkg/yarn/labels/needs%20triage","name":"needs triage","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-25T11:33:45Z","updated_at":"2017-02-13T04:31:12Z","closed_at":null,"body":"**Do you want to request a _feature_ or report a _bug_?**\n\nBUG\n\n**What is the current behavior?**\n\nAfter running clean `yarn` at least one of the packages does not work (Angulartics). The behavior is strange because the package itself gets downloaded and exists in `node_modules`, but it cannot be resolved by Webpack (import). Running clean `npm install` works (no `cannot resolve module` error).\n\nTried adding package manually with `yarn add angulartics`. It worked once, but since we got the same error when building the app, I cleared the `node_modules` and ran `yarn` once again (even following with `yarn add angulartics`) but this time it did not work.\n\n**If the current behavior is a bug, please provide the steps to reproduce.**\n\n```\n\"dependencies\": {\n    \"angular\": \"^1.5.8\",\n    \"angular-animate\": \"^1.5.8\",\n    \"angular-aria\": \"^1.5.8\",\n    \"angular-async-await\": \"https://github.com/zaalbarxx/angular-async-await/tarball/master\",\n    \"angular-cookies\": \"^1.5.8\",\n    \"angular-jwt\": \"0.1.3\",\n    \"angular-localforage\": \"^1.3.1\",\n    \"angular-material\": \"^1.1.1\",\n    \"angular-messages\": \"^1.5.8\",\n    \"angular-resource\": \"^1.5.8\",\n    \"angular-sanitize\": \"^1.5.8\",\n    \"angular-storage\": \"0.0.15\",\n    \"angular-ui-router\": \"^0.2.18\",\n    \"angularjs-color-picker\": \"2.5.0\",\n    \"angulartics\": \"^1.2.1\",\n    \"angulartics-google-analytics\": \"^0.2.0\",\n    \"d3\": \"^3.5.17\",\n    \"dateformat\": \"^1.0.12\",\n    \"fix-outline\": \"^0.1.1\",\n    \"highcharts\": \"^5.0.0\",\n    \"highcharts-ng\": \"0.0.13\",\n    \"json-loader\": \"^0.5.4\",\n    \"lodash\": \"^4.11.2\",\n    \"moment\": \"^2.14.1\",\n    \"ng-async\": \"^1.1.0\",\n    \"ramda\": \"^0.21.0\",\n    \"snake-case\": \"^2.1.0\",\n    \"tinycolor2\": \"^1.4.1\"\n  },\n```\n\n**What is the expected behavior?**\n\nThe error from Webpack should not happen.\n\n**Please mention your node.js, yarn and operating system version.**\n\nyarn v0.16.1\nWindows 10\nnode 6.5.0\n"},"comment":{"url":"https://api.github.com/repos/yarnpkg/yarn/issues/comments/279292404","html_url":"https://github.com/yarnpkg/yarn/issues/1434#issuecomment-279292404","issue_url":"https://api.github.com/repos/yarnpkg/yarn/issues/1434","id":279292404,"user":{"login":"wcj3","id":12175312,"avatar_url":"https://avatars.githubusercontent.com/u/12175312?v=3","gravatar_id":"","url":"https://api.github.com/users/wcj3","html_url":"https://github.com/wcj3","followers_url":"https://api.github.com/users/wcj3/followers","following_url":"https://api.github.com/users/wcj3/following{/other_user}","gists_url":"https://api.github.com/users/wcj3/gists{/gist_id}","starred_url":"https://api.github.com/users/wcj3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wcj3/subscriptions","organizations_url":"https://api.github.com/users/wcj3/orgs","repos_url":"https://api.github.com/users/wcj3/repos","events_url":"https://api.github.com/users/wcj3/events{/privacy}","received_events_url":"https://api.github.com/users/wcj3/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T04:31:12Z","updated_at":"2017-02-13T04:31:12Z","body":"Having a similar issue as well. Webpack cannot resolve a module installed as a nested dependency by Yarn but if I delete node_modules and do npm install, it works."}}
{"actor":{"display_login":"wcj3"}}