您正在使用的require是节点模块,而不是ES6模块。
require
“默认”导出是完整的module.exports。
module.exports
更换
exports.default = Server;
与
module.exports = Server;