E0076: cannot declare and export variable with 'export default'
In modules, you can declare and export a variable at the same time. However, it is a syntax error to declare and export a variable by default:
To fix this error, export by name, not by default:
Alternatively, to export by default, declare the variable then export it in a separate statement. Note that this means importers of the variable cannot assign to the variable (but the object can still be modified):
Documentation for other errors