Let's examine the export names and local names created by various kinds of exporting. This is not direct answer to the original question but I hope this suggestion helps someones with similar error: When using a newer web-api with Webpack+Babel for transpiling and you get. Trigger event in Jest Test does not call Method. Import and export may only appear at the top level readme. Script> elements,