mikro-orm-nextjs icon indicating copy to clipboard operation
mikro-orm-nextjs copied to clipboard

Entity with this name was discovered, but not the prototype you are passing to the ORM.

Open qwabra opened this issue 3 years ago • 2 comments
trafficstars

Error

Entity with this name was discovered, but not the prototype you are passing to the ORM.

fix target in tsconfig.json file

https://github.com/jonahallibone/mikro-orm-nextjs/blob/master/tsconfig.json#L5

from es5

"target": "es5"

to es6

"target": "es6"

qwabra avatar Feb 13 '22 18:02 qwabra

hmm, or not.

problems with auto-increment ID key

qwabra avatar Feb 13 '22 19:02 qwabra

Changing target to es6 fixed the issue, but context-specific em-ID: is still rising... Not sure if that should be hapenning.

Baterka avatar Sep 29 '22 17:09 Baterka