{"action":"opened","issue":{"url":"https://api.github.com/repos/css-modules/css-modules/issues/171","repository_url":"https://api.github.com/repos/css-modules/css-modules","labels_url":"https://api.github.com/repos/css-modules/css-modules/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/css-modules/css-modules/issues/171/comments","events_url":"https://api.github.com/repos/css-modules/css-modules/issues/171/events","html_url":"https://github.com/css-modules/css-modules/issues/171","id":178027913,"number":171,"title":"File not found: Wrong resolving of dependency imports.","user":{"login":"delijah","id":237739,"avatar_url":"https://avatars.githubusercontent.com/u/237739?v=3","gravatar_id":"","url":"https://api.github.com/users/delijah","html_url":"https://github.com/delijah","followers_url":"https://api.github.com/users/delijah/followers","following_url":"https://api.github.com/users/delijah/following{/other_user}","gists_url":"https://api.github.com/users/delijah/gists{/gist_id}","starred_url":"https://api.github.com/users/delijah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delijah/subscriptions","organizations_url":"https://api.github.com/users/delijah/orgs","repos_url":"https://api.github.com/users/delijah/repos","events_url":"https://api.github.com/users/delijah/events{/privacy}","received_events_url":"https://api.github.com/users/delijah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-20T10:52:53Z","updated_at":"2016-09-20T10:52:53Z","closed_at":null,"body":"Let's assume we have the following file structure:\r\n\r\n```\r\n+\r\n|+modules\r\n||-magicButton.css\r\n|+shared\r\n||-layout.css\r\n||-typography.css\r\n```\r\n\r\nFile contents look like this:\r\n\r\n```\r\n/* modules/magicButton.css */\r\n.title {\r\n  composes: app-title from \"./../shared/layout.css\";\r\n}\r\n```\r\n\r\n```\r\n/* shared/layout.css */\r\n.app-title {\r\n  composes: large-font from \"./typography.css\";\r\n}\r\n```\r\n\r\n```\r\n/* shared/typography.css */\r\n.large-font {\r\n  font-size: 20px;\r\n}\r\n```\r\n\r\nWhen running this, i would get a `Module not found: Error: Cannot resolve 'file' or 'directory'`.\r\n\r\nWhen i use `\"./../shared/typography.css\"` instead of `\"./typography.css\"` in the \"shared/layout.css\" file, everything works fine. This is wrong!\r\n\r\nRelated to #170."}}
{"actor":{"display_login":"delijah"}}