I am new to React.js and am facing this error. A file in my project is exporting a function as follows:
exports.building = {
//... //Something goes here...
};
And I am importing it as follows:
const building from "./building";
I have come across the following links but am unable to find a reasonable fix: