Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该如何修复这个错误
未发现实体“未定义”实体,请确保在初始化 ORM 时在“实体”数组中提供它
我在 Nestjs 项目中遇到了同样的问题mikro-orm。 在配置中使用entities数组而不是entitiesDirs(如 Martin 所述),并在重新启动之前停止开发服务器并删除/tempand/dist文件夹为我解决了这个问题。
mikro-orm
entities
entitiesDirs
/temp
/dist