{"action":"created","issue":{"url":"https://api.github.com/repos/JakeHartnell/react-images-upload/issues/21","repository_url":"https://api.github.com/repos/JakeHartnell/react-images-upload","labels_url":"https://api.github.com/repos/JakeHartnell/react-images-upload/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/JakeHartnell/react-images-upload/issues/21/comments","events_url":"https://api.github.com/repos/JakeHartnell/react-images-upload/issues/21/events","html_url":"https://github.com/JakeHartnell/react-images-upload/issues/21","id":306736804,"number":21,"title":"Module parse failed: Unexpected token (85:10)","user":{"login":"madeinspace","id":188750,"avatar_url":"https://avatars1.githubusercontent.com/u/188750?v=4","gravatar_id":"","url":"https://api.github.com/users/madeinspace","html_url":"https://github.com/madeinspace","followers_url":"https://api.github.com/users/madeinspace/followers","following_url":"https://api.github.com/users/madeinspace/following{/other_user}","gists_url":"https://api.github.com/users/madeinspace/gists{/gist_id}","starred_url":"https://api.github.com/users/madeinspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madeinspace/subscriptions","organizations_url":"https://api.github.com/users/madeinspace/orgs","repos_url":"https://api.github.com/users/madeinspace/repos","events_url":"https://api.github.com/users/madeinspace/events{/privacy}","received_events_url":"https://api.github.com/users/madeinspace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-03-20T05:47:02Z","updated_at":"2018-05-16T15:02:47Z","closed_at":null,"author_association":"NONE","body":"I'd love to use your module but using your example that's the error I get on compile, I'm using an app created by the create-react-app module so don't have control over the webpack configuration (I chose not to anyway):\r\n\r\n./node_modules/react-images-upload/index.js\r\nModule parse failed: Unexpected token (85:10)\r\nYou may need an appropriate loader to handle this file type.\r\n|       renderIcon() {\r\n|               if (this.props.withIcon) {\r\n|                       return <div className=\"uploadIcon\"/>;\r\n|               }\r\n|       }\r\n"},"comment":{"url":"https://api.github.com/repos/JakeHartnell/react-images-upload/issues/comments/389551621","html_url":"https://github.com/JakeHartnell/react-images-upload/issues/21#issuecomment-389551621","issue_url":"https://api.github.com/repos/JakeHartnell/react-images-upload/issues/21","id":389551621,"user":{"login":"donalmurtagh","id":11269693,"avatar_url":"https://avatars1.githubusercontent.com/u/11269693?v=4","gravatar_id":"","url":"https://api.github.com/users/donalmurtagh","html_url":"https://github.com/donalmurtagh","followers_url":"https://api.github.com/users/donalmurtagh/followers","following_url":"https://api.github.com/users/donalmurtagh/following{/other_user}","gists_url":"https://api.github.com/users/donalmurtagh/gists{/gist_id}","starred_url":"https://api.github.com/users/donalmurtagh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donalmurtagh/subscriptions","organizations_url":"https://api.github.com/users/donalmurtagh/orgs","repos_url":"https://api.github.com/users/donalmurtagh/repos","events_url":"https://api.github.com/users/donalmurtagh/events{/privacy}","received_events_url":"https://api.github.com/users/donalmurtagh/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T15:02:47Z","updated_at":"2018-05-16T15:02:47Z","author_association":"NONE","body":"I also have this problem in the latest version (1.0.7). The error message is:\r\n```\r\nFailed to compile.\r\n\r\n./node_modules/react-images-upload/index.js\r\nModule parse failed: Unexpected token (86:10)\r\nYou may need an appropriate loader to handle this file type.\r\n|       renderIcon() {\r\n|               if (this.props.withIcon) {\r\n|                       return <img src={UploadIcon} className=\"uploadIcon\" \r\n|                               alt=\"Upload Icon\" />;\r\n|               }\r\n```\r\n\r\nPresumably, the problem is using `UploadIcon` (an SVG) as the value of an image's `src` attribute.\r\nI tried adding SVG files to the list of files processed by Webpack's url-loader\r\n```\r\n          {\r\n            // I added SVG to this array\r\n            test: [/\\.bmp$/, /\\.gif$/, /\\.jpe?g$/, /\\.png$/, /\\.svg$/],\r\n            loader: require.resolve('url-loader'),\r\n            options: {\r\n              limit: 10000,\r\n              name: 'static/media/[name].[hash:8].[ext]',\r\n            },\r\n          },\r\n```\r\n\r\nBut I still get the same error."}}
{"actor":{"display_login":"donalmurtagh"}}