0
0

More than 3 years have passed since last update.

[TypeORM]Entity metadata for Post#category was not found.

Last updated at Posted at 2021-08-15

概要

TypeORMでエラーが表示されてマイグレーションができない

"Entity metadata for Post#category was not found. Chech if you specified a correct entity object and if it's connection in the connection options."

原因

jsconfig.jsonに作成したEntityを追加していなかった

対処

jsconfig.jsonに作成したEntityのファイルパスを記入
※TypeScriptの場合はtsconfig.json

追記内容
"include": [
    "./entity.post.js",
    "./entity.category.js"
],
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0