standard-things / esm

Tomorrow's ECMAScript modules today!
Other
5.26k stars 146 forks source link

ReferenceError: Invalid left-hand side expression in prefix operation #833

Open robinkeith opened 5 years ago

robinkeith commented 5 years ago

I'm compiling a project that uses a fork of opening_hours.js (which formats OpenStreetMap opening hours strings nicely). original is here: https://github.com/opening-hours/opening_hours.js

opening_hours.js pulls in configuration about local public holidays from yaml files using this syntax: export { default as at } from './at.yaml';

esm doesn't seem to like that. Any ideas why (appologies is this is a dumb question, not used esm before). Full error below:

C:\projects\github\AKindCity6\opening_hours.js\holidays\at.yaml:1

ReferenceError: Invalid left-hand side expression in prefix operation ?[90m at Object.compileFunction (vm.js:383:10)?[39m at Generator.next () at Object. (C:\projects\github\AKindCity6\opening_hours.js\holidays\index.js:1) at Generator.next ()