{"action":"closed","issue":{"url":"https://api.github.com/repos/benjamn/recast/issues/206","labels_url":"https://api.github.com/repos/benjamn/recast/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/benjamn/recast/issues/206/comments","events_url":"https://api.github.com/repos/benjamn/recast/issues/206/events","html_url":"https://github.com/benjamn/recast/issues/206","id":99169861,"number":206,"title":"ES6 import/export declaration building fails","user":{"login":"gcazaciuc","id":1248360,"avatar_url":"https://avatars.githubusercontent.com/u/1248360?v=3","gravatar_id":"","url":"https://api.github.com/users/gcazaciuc","html_url":"https://github.com/gcazaciuc","followers_url":"https://api.github.com/users/gcazaciuc/followers","following_url":"https://api.github.com/users/gcazaciuc/following{/other_user}","gists_url":"https://api.github.com/users/gcazaciuc/gists{/gist_id}","starred_url":"https://api.github.com/users/gcazaciuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gcazaciuc/subscriptions","organizations_url":"https://api.github.com/users/gcazaciuc/orgs","repos_url":"https://api.github.com/users/gcazaciuc/repos","events_url":"https://api.github.com/users/gcazaciuc/events{/privacy}","received_events_url":"https://api.github.com/users/gcazaciuc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-05T10:00:49Z","updated_at":"2015-08-07T13:10:48Z","closed_at":"2015-08-07T13:10:48Z","body":"I have the following declaration and I'm trying to create a simple ES6 import:\r\n\r\nastBuilder.importDeclaration(\r\n                    [astBuilder.importSpecifier( astBuilder.identifier(\"test\"), astBuilder.identifier(\"test\") )], astBuilder.literal(modulePath)\r\n                );\r\n\r\nHowever, this fails with:\r\n\r\nAssertionError: no value or default function given for field \"id\" of ImportSpecifier(\"imported\": Identifier, \"local\": Identifier)\r\n    at add node_modules/ast-types/lib/types.js:541:28)\r\n    at node_modules/ast-types/lib/types.js:563:17\r\n    at Array.forEach (native)\r\n    at Object.defineProperty.value [as importSpecifier] (node_modules/ast-types/lib/types.js:562:41)\r\n\r\nTried also similar approaches with importDefaultSpecifier but got the same result.\r\n\r\nThis used to work without any issues in previous versions of recast.\r\n\r\nI'm using the latest version published on NPM for recast"}}