{"action":"created","issue":{"url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/30","repository_url":"https://api.github.com/repos/piotrwitek/typesafe-actions","labels_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/30/comments","events_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/30/events","html_url":"https://github.com/piotrwitek/typesafe-actions/issues/30","id":320503480,"number":30,"title":"Cannot find module 'typesafe-actions'","user":{"login":"jeffarese","id":3155133,"avatar_url":"https://avatars1.githubusercontent.com/u/3155133?v=4","gravatar_id":"","url":"https://api.github.com/users/jeffarese","html_url":"https://github.com/jeffarese","followers_url":"https://api.github.com/users/jeffarese/followers","following_url":"https://api.github.com/users/jeffarese/following{/other_user}","gists_url":"https://api.github.com/users/jeffarese/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffarese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffarese/subscriptions","organizations_url":"https://api.github.com/users/jeffarese/orgs","repos_url":"https://api.github.com/users/jeffarese/repos","events_url":"https://api.github.com/users/jeffarese/events{/privacy}","received_events_url":"https://api.github.com/users/jeffarese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-05T11:54:28Z","updated_at":"2018-05-08T17:18:17Z","closed_at":null,"author_association":"NONE","body":"I'm using **2.0.0-1** and I get the following error: \r\n\r\n`(1,43): Cannot find module 'typesafe-actions'.`\r\n\r\nThe funny thing is that if I remove the import, save, add it again and save again, it runs without errors until I restart the build process.\r\n\r\nThis is the file that causes the error: \r\n\r\n```\r\nimport { ActionsUnion, buildAction } from 'typesafe-actions';\r\n\r\nconst INCREMENT_CURRENT_QUESTION = 'INCREMENT_CURRENT_QUESTION';\r\n\r\nexport const betPublishActions = {\r\n  incrementCurrentQuestion: buildAction(INCREMENT_CURRENT_QUESTION).empty()\r\n};\r\n\r\nexport type BetPublishActions = ActionsUnion<typeof betPublishActions>;\r\n```\r\nMy project is pretty fresh, created with the TS scripts of create-react-app.\r\n\r\nMy `package.json`: \r\n\r\n```\r\n{\r\n  \"name\": \"tipsterchat-webapp\",\r\n  \"version\": \"0.1.0\",\r\n  \"private\": true,\r\n  \"dependencies\": {\r\n    \"node-sass-chokidar\": \"^1.2.2\",\r\n    \"npm-run-all\": \"^4.1.2\",\r\n    \"prettier\": \"^1.12.1\",\r\n    \"react\": \"^16.3.2\",\r\n    \"react-dom\": \"^16.3.2\",\r\n    \"react-redux\": \"^5.0.7\",\r\n    \"react-scripts-ts\": \"2.15.1\",\r\n    \"redux\": \"^4.0.0\",\r\n    \"redux-form\": \"^7.3.0\",\r\n    \"typesafe-actions\": \"2.0.0-1\"\r\n  },\r\n  \"scripts\": {\r\n    \"build-css\": \"node-sass-chokidar src/ -o src/\",\r\n    \"watch-css\": \"npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive\",\r\n    \"start-js\": \"react-scripts-ts start\",\r\n    \"start\": \"npm-run-all -p watch-css start-js\",\r\n    \"build-js\": \"react-scripts-ts build\",\r\n    \"build\": \"npm-run-all build-css build-js\",\r\n    \"test\": \"react-scripts-ts test --env=jsdom\",\r\n    \"eject\": \"react-scripts-ts eject\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"@types/jest\": \"^22.2.3\",\r\n    \"@types/node\": \"^8.10.11\",\r\n    \"@types/react\": \"^16.3.13\",\r\n    \"@types/react-dom\": \"^16.0.5\",\r\n    \"@types/react-redux\": \"^5.0.19\",\r\n    \"@types/redux-form\": \"^7.2.4\",\r\n    \"typescript\": \"^2.8.3\"\r\n  }\r\n}\r\n```\r\n\r\nThe error keeps appearing after editing any other file (even scss) and I have to remove & add the import again."},"comment":{"url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/comments/387476602","html_url":"https://github.com/piotrwitek/typesafe-actions/issues/30#issuecomment-387476602","issue_url":"https://api.github.com/repos/piotrwitek/typesafe-actions/issues/30","id":387476602,"user":{"login":"piotrwitek","id":739075,"avatar_url":"https://avatars0.githubusercontent.com/u/739075?v=4","gravatar_id":"","url":"https://api.github.com/users/piotrwitek","html_url":"https://github.com/piotrwitek","followers_url":"https://api.github.com/users/piotrwitek/followers","following_url":"https://api.github.com/users/piotrwitek/following{/other_user}","gists_url":"https://api.github.com/users/piotrwitek/gists{/gist_id}","starred_url":"https://api.github.com/users/piotrwitek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotrwitek/subscriptions","organizations_url":"https://api.github.com/users/piotrwitek/orgs","repos_url":"https://api.github.com/users/piotrwitek/repos","events_url":"https://api.github.com/users/piotrwitek/events{/privacy}","received_events_url":"https://api.github.com/users/piotrwitek/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T17:18:17Z","updated_at":"2018-05-08T17:18:17Z","author_association":"OWNER","body":"ok I might figured that one out, it sounds unrelated, but please could you try and confirm if below will fix your error @jeffarese \r\n\r\nOpen tslint.json and delete this line:\r\n```\r\n25.     \"no-unused-variable\": [true, \"react\"],\r\n```"}}
{"actor":{"display_login":"piotrwitek"}}