Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
qwabra opened this issue Feb 13, 2022 · 2 comments

Comments

@qwabra
Copy link

qwabra commented Feb 13, 2022

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
Copy link
Author

qwabra commented Feb 13, 2022

hmm, or not.

problems with auto-increment ID key

@Baterka
Copy link

Baterka commented Sep 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants