Wix user @gigiquadri found a solution to this error, by changing the import statement for exceljs to the following:
import * as ExcelJS from "exceljs/dist/exceljs.min.js";
Still no idea why this happens, or if a similar problem exists with other library imports. I’ve implemented a backup .csv parser in case exceljs stops working again.