mikro-orm-nextjs
mikro-orm-nextjs copied to clipboard
Entity with this name was discovered, but not the prototype you are passing to the ORM.
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"
hmm, or not.
problems with auto-increment ID key
Changing target to es6 fixed the issue, but context-specific em-ID: is still rising... Not sure if that should be hapenning.