{"action":"opened","issue":{"url":"https://api.github.com/repos/exelban/react-swipe-component/issues/14","repository_url":"https://api.github.com/repos/exelban/react-swipe-component","labels_url":"https://api.github.com/repos/exelban/react-swipe-component/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/exelban/react-swipe-component/issues/14/comments","events_url":"https://api.github.com/repos/exelban/react-swipe-component/issues/14/events","html_url":"https://github.com/exelban/react-swipe-component/issues/14","id":370512090,"node_id":"MDU6SXNzdWUzNzA1MTIwOTA=","number":14,"title":"Unexpected identifier on \"import\" or \"require\"","user":{"login":"ttous","id":19815440,"node_id":"MDQ6VXNlcjE5ODE1NDQw","avatar_url":"https://avatars0.githubusercontent.com/u/19815440?v=4","gravatar_id":"","url":"https://api.github.com/users/ttous","html_url":"https://github.com/ttous","followers_url":"https://api.github.com/users/ttous/followers","following_url":"https://api.github.com/users/ttous/following{/other_user}","gists_url":"https://api.github.com/users/ttous/gists{/gist_id}","starred_url":"https://api.github.com/users/ttous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttous/subscriptions","organizations_url":"https://api.github.com/users/ttous/orgs","repos_url":"https://api.github.com/users/ttous/repos","events_url":"https://api.github.com/users/ttous/events{/privacy}","received_events_url":"https://api.github.com/users/ttous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-16T09:09:56Z","updated_at":"2018-10-16T09:09:56Z","closed_at":null,"author_association":"NONE","body":"**react-swipe-component**: 2.1.0\r\n**node**: 8.4.0\r\n**jest**: 23.6.0\r\n\r\nHello,\r\n\r\nThe module is working just fine, but whenever I try to launch tests with Jest, I get the following error:\r\n`SyntaxError: Unexpected identifier\r\n\r\n      2 | import { Component } from 'react';\r\n      3 | import * as ReactSwipe from 'react-swipe';\r\n    > 4 | import SwipeDetector from 'react-swipe-component';\r\n        | ^\r\n      5 | import { ItemProblem } from '../admin/types';\r\n      6 | import { FIXED_DISPLAY_DURATION } from '../admin/test/test';\r\n      7 |\r\n\r\n      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/script_transformer.js:403:17)\r\n      at Object.<anonymous> (src/js/components/paginator.tsx:4:1)`\r\n\r\nThere is no problem when I run my application, it's only when I start testing.\r\n\r\nI tried to replace the import by a `require()`, I still get the error, on the require this time."}}
{"actor":{"display_login":"ttous"}}