模块 ""mongoose"" 没有默认导出。你是想改为使用 "import { Mongoose } from "mongoose"" 吗? 在 tsconfig.json 加 "esModuleInterop": true 第二种方法是: