{"action":"created","issue":{"url":"https://api.github.com/repos/callstack/linaria/issues/169","repository_url":"https://api.github.com/repos/callstack/linaria","labels_url":"https://api.github.com/repos/callstack/linaria/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/callstack/linaria/issues/169/comments","events_url":"https://api.github.com/repos/callstack/linaria/issues/169/events","html_url":"https://github.com/callstack/linaria/issues/169","id":272806248,"number":169,"title":"Deleting outDir breaks Linaria for good","user":{"login":"steadicat","id":6031,"avatar_url":"https://avatars0.githubusercontent.com/u/6031?v=4","gravatar_id":"","url":"https://api.github.com/users/steadicat","html_url":"https://github.com/steadicat","followers_url":"https://api.github.com/users/steadicat/followers","following_url":"https://api.github.com/users/steadicat/following{/other_user}","gists_url":"https://api.github.com/users/steadicat/gists{/gist_id}","starred_url":"https://api.github.com/users/steadicat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steadicat/subscriptions","organizations_url":"https://api.github.com/users/steadicat/orgs","repos_url":"https://api.github.com/users/steadicat/repos","events_url":"https://api.github.com/users/steadicat/events{/privacy}","received_events_url":"https://api.github.com/users/steadicat/received_events","type":"User","site_admin":false},"labels":[{"id":610935896,"url":"https://api.github.com/repos/callstack/linaria/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-11-10T03:09:36Z","updated_at":"2017-11-13T11:02:59Z","closed_at":null,"author_association":"NONE","body":"**Do you want to request a *feature* or report a *bug*?**\r\n\r\nBug.\r\n\r\n**What is the current behavior?**\r\n\r\nI sometimes see stale generated stylesheets (more on that perhaps in future issues), so I find myself deleting `./src/.linaria-cache` (my `outDir`) to try to start fresh. After I do this, Linaria fails to build, spewing a bunch of errors like:\r\n\r\n```\r\n`Error in ./src/ui/components/chrome/SiteServicesMenu.js\r\nModule not found: [CaseSensitivePathsPlugin] `src/.linaria-cache/src/ui/components/chrome/SiteServicesMenu.css` does not match the corresponding path on disk - File does not exist.\r\n**If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can `yarn install` and `yarn test`.**\r\n```\r\n\r\nRestarting Webpack or clearing the Babel cache does not help. I'm stuck.\r\n\r\n**What is the expected behavior?**\r\n\r\nMissing output files get rebuilt instead of throwing errors.\r\n\r\n**Please provide your exact Babel configuration and mention your Linaria, Node, Yarn/npm version and operating system.**\r\n\r\nThis is with `create-react-app`, Node 8.9.0, Webpack 1.14.0, Babel 6.2.7. This is how I configured Babel:\r\n\r\n```\r\n{\r\n    \"presets\": [\r\n      \"react-app\",\r\n      [\r\n        \"linaria/babel\",\r\n        {\r\n          \"outDir\": \"./src/.linaria-cache\"\r\n        }\r\n      ]\r\n    ]\r\n  }\r\n```"},"comment":{"url":"https://api.github.com/repos/callstack/linaria/issues/comments/343885786","html_url":"https://github.com/callstack/linaria/issues/169#issuecomment-343885786","issue_url":"https://api.github.com/repos/callstack/linaria/issues/169","id":343885786,"user":{"login":"zamotany","id":17573635,"avatar_url":"https://avatars2.githubusercontent.com/u/17573635?v=4","gravatar_id":"","url":"https://api.github.com/users/zamotany","html_url":"https://github.com/zamotany","followers_url":"https://api.github.com/users/zamotany/followers","following_url":"https://api.github.com/users/zamotany/following{/other_user}","gists_url":"https://api.github.com/users/zamotany/gists{/gist_id}","starred_url":"https://api.github.com/users/zamotany/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zamotany/subscriptions","organizations_url":"https://api.github.com/users/zamotany/orgs","repos_url":"https://api.github.com/users/zamotany/repos","events_url":"https://api.github.com/users/zamotany/events{/privacy}","received_events_url":"https://api.github.com/users/zamotany/received_events","type":"User","site_admin":false},"created_at":"2017-11-13T11:02:59Z","updated_at":"2017-11-13T11:02:59Z","author_association":"COLLABORATOR","body":"I've tried to reproduce this issue within `website` project with no luck. It would greatly help you you could create a repo when we can reproduce this bug."}}
{"actor":{"display_login":"zamotany"}}