{"action":"created","issue":{"url":"https://api.github.com/repos/Polymer/polymer-modulizer/issues/445","repository_url":"https://api.github.com/repos/Polymer/polymer-modulizer","labels_url":"https://api.github.com/repos/Polymer/polymer-modulizer/issues/445/labels{/name}","comments_url":"https://api.github.com/repos/Polymer/polymer-modulizer/issues/445/comments","events_url":"https://api.github.com/repos/Polymer/polymer-modulizer/issues/445/events","html_url":"https://github.com/Polymer/polymer-modulizer/issues/445","id":326804713,"node_id":"MDU6SXNzdWUzMjY4MDQ3MTM=","number":445,"title":"Unexpected Reserve Word error","user":{"login":"ernsheong","id":1343284,"node_id":"MDQ6VXNlcjEzNDMyODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1343284?v=4","gravatar_id":"","url":"https://api.github.com/users/ernsheong","html_url":"https://github.com/ernsheong","followers_url":"https://api.github.com/users/ernsheong/followers","following_url":"https://api.github.com/users/ernsheong/following{/other_user}","gists_url":"https://api.github.com/users/ernsheong/gists{/gist_id}","starred_url":"https://api.github.com/users/ernsheong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ernsheong/subscriptions","organizations_url":"https://api.github.com/users/ernsheong/orgs","repos_url":"https://api.github.com/users/ernsheong/repos","events_url":"https://api.github.com/users/ernsheong/events{/privacy}","received_events_url":"https://api.github.com/users/ernsheong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-05-27T10:28:26Z","updated_at":"2018-10-11T14:03:31Z","closed_at":null,"author_association":"NONE","body":"```\r\n$ modulizer --out . --import-style \"name\"\r\n\r\n[1/2] 🌀  Converting Package...\r\nOut directory: <OMITTED>\r\n\r\nUnhandled Rejection at: Promise  Promise {\r\n  <rejected> { Error: Line 44: Unexpected reserved word\r\n    at ErrorHandler.constructError (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:5004:22)\r\n    at ErrorHandler.createError (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:5020:27)\r\n    at JSXParser.Parser.unexpectedTokenError (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:1985:39)\r\n    at JSXParser.Parser.throwUnexpectedToken (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:1995:21)\r\n    at JSXParser.Parser.parsePrimaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2383:38)\r\n    at JSXParser.parsePrimaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:466:97)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseLeftHandSideExpressionAllowCall (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2892:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseUpdateExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2997:26)\r\n    at JSXParser.Parser.parseUnaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:3041:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseExponentiationExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:3047:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseBinaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:3082:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n  index: 1385,\r\n  lineNumber: 44,\r\n  description: 'Unexpected reserved word' } }  reason:  { Error: Line 44: Unexpected reserved word\r\n    at ErrorHandler.constructError (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:5004:22)\r\n    at ErrorHandler.createError (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:5020:27)\r\n    at JSXParser.Parser.unexpectedTokenError (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:1985:39)\r\n    at JSXParser.Parser.throwUnexpectedToken (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:1995:21)\r\n    at JSXParser.Parser.parsePrimaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2383:38)\r\n    at JSXParser.parsePrimaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:466:97)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseLeftHandSideExpressionAllowCall (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2892:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseUpdateExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2997:26)\r\n    at JSXParser.Parser.parseUnaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:3041:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseExponentiationExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:3047:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n    at JSXParser.Parser.parseBinaryExpression (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:3082:26)\r\n    at JSXParser.Parser.inheritCoverGrammar (/Users/ernsheong/.nvm/versions/node/v8.11.1/lib/node_modules/polymer-modulizer/node_modules/recast/node_modules/esprima/dist/esprima.js:2278:37)\r\n  index: 1385,\r\n  lineNumber: 44,\r\n  description: 'Unexpected reserved word' }\r\n```\r\n\r\nI am trying to modularize a Polymer 2 project bundled with [polymer-webpack-loader](https://github.com/webpack-contrib/polymer-webpack-loader)"},"comment":{"url":"https://api.github.com/repos/Polymer/polymer-modulizer/issues/comments/428967676","html_url":"https://github.com/Polymer/polymer-modulizer/issues/445#issuecomment-428967676","issue_url":"https://api.github.com/repos/Polymer/polymer-modulizer/issues/445","id":428967676,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODk2NzY3Ng==","user":{"login":"jean-maxime","id":9745304,"node_id":"MDQ6VXNlcjk3NDUzMDQ=","avatar_url":"https://avatars2.githubusercontent.com/u/9745304?v=4","gravatar_id":"","url":"https://api.github.com/users/jean-maxime","html_url":"https://github.com/jean-maxime","followers_url":"https://api.github.com/users/jean-maxime/followers","following_url":"https://api.github.com/users/jean-maxime/following{/other_user}","gists_url":"https://api.github.com/users/jean-maxime/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-maxime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-maxime/subscriptions","organizations_url":"https://api.github.com/users/jean-maxime/orgs","repos_url":"https://api.github.com/users/jean-maxime/repos","events_url":"https://api.github.com/users/jean-maxime/events{/privacy}","received_events_url":"https://api.github.com/users/jean-maxime/received_events","type":"User","site_admin":false},"created_at":"2018-10-11T14:03:31Z","updated_at":"2018-10-11T14:03:31Z","author_association":"NONE","body":"I don't have any var named `import` ... strange\r\nThe variable `import` was in your code or in a module ?"}}
{"actor":{"display_login":"jean-maxime"}}