{"action":"created","issue":{"url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/156","repository_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl","labels_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/156/comments","events_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/156/events","html_url":"https://github.com/yahoo/babel-plugin-react-intl/issues/156","id":364138966,"node_id":"MDU6SXNzdWUzNjQxMzg5NjY=","number":156,"title":"[Babel 7] TypeError: Path must be a string. Received undefined","user":{"login":"alexnez96","id":32908329,"node_id":"MDQ6VXNlcjMyOTA4MzI5","avatar_url":"https://avatars1.githubusercontent.com/u/32908329?v=4","gravatar_id":"","url":"https://api.github.com/users/alexnez96","html_url":"https://github.com/alexnez96","followers_url":"https://api.github.com/users/alexnez96/followers","following_url":"https://api.github.com/users/alexnez96/following{/other_user}","gists_url":"https://api.github.com/users/alexnez96/gists{/gist_id}","starred_url":"https://api.github.com/users/alexnez96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexnez96/subscriptions","organizations_url":"https://api.github.com/users/alexnez96/orgs","repos_url":"https://api.github.com/users/alexnez96/repos","events_url":"https://api.github.com/users/alexnez96/events{/privacy}","received_events_url":"https://api.github.com/users/alexnez96/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-26T17:42:01Z","updated_at":"2018-09-26T20:33:00Z","closed_at":"2018-09-26T20:33:00Z","author_association":"NONE","body":"### Problem\r\n\r\nThe latest `babel-plugin-react-intl` at v`3.0.1` fails with a `TypeError: Path must be a string. Received undefined`.\r\n\r\n### Stacktrace\r\n\r\n```\r\nTypeError: Path must be a string. Received undefined\r\n    at assertPath (path.js:28:11)\r\n    at Object.extname (path.js:1456:5)\r\n    at PluginPass.post (/my/project/path/node_modules/babel-plugin-react-intl/lib/index.js:204:45)\r\n    at transformFile (/my/project/path/node_modules/@babel/core/lib/transformation/index.js:94:27)\r\n    at runSync (/my/project/path/node_modules/@babel/core/lib/transformation/index.js:45:3)\r\n    at transformSync (/my/project/path/node_modules/@babel/core/lib/transform.js:43:38)\r\n    at transform (/my/project/path/node_modules/@babel/core/lib/transform.js:22:38)\r\n    ...\r\n```\r\n\r\n### Reproduction\r\n\r\n```js\r\nimport fs from 'fs'\r\nimport { transform } from '@babel/core'\r\n\r\nconst presets = ['@babel/env', '@babel/react']\r\nconst plugins = ['react-intl']\r\n\r\nconst code = fs.readFileSync('path/to/file')\r\nconst { metadata } = await transform(code, { presets, plugins })\r\n```\r\n\r\n### Environment\r\n\r\nOS: Ubuntu 16.04\r\nNode: 8.12.0\r\nNPM: 6.4.1"},"comment":{"url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/comments/424859833","html_url":"https://github.com/yahoo/babel-plugin-react-intl/issues/156#issuecomment-424859833","issue_url":"https://api.github.com/repos/yahoo/babel-plugin-react-intl/issues/156","id":424859833,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDg1OTgzMw==","user":{"login":"redonkulus","id":193272,"node_id":"MDQ6VXNlcjE5MzI3Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/193272?v=4","gravatar_id":"","url":"https://api.github.com/users/redonkulus","html_url":"https://github.com/redonkulus","followers_url":"https://api.github.com/users/redonkulus/followers","following_url":"https://api.github.com/users/redonkulus/following{/other_user}","gists_url":"https://api.github.com/users/redonkulus/gists{/gist_id}","starred_url":"https://api.github.com/users/redonkulus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redonkulus/subscriptions","organizations_url":"https://api.github.com/users/redonkulus/orgs","repos_url":"https://api.github.com/users/redonkulus/repos","events_url":"https://api.github.com/users/redonkulus/events{/privacy}","received_events_url":"https://api.github.com/users/redonkulus/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T20:32:59Z","updated_at":"2018-09-26T20:32:59Z","author_association":"CONTRIBUTOR","body":"This is a dup of https://github.com/yahoo/babel-plugin-react-intl/issues/156. Lets discuss in that one."}}
{"actor":{"display_login":"redonkulus"}}