@mikro-orm/entity-generator is causing error
rizchaerul opened this issue · 5 comments
Describe the bug
I made a repo to reproduce the bug: https://github.com/rizchaerul/bug
Hi, so earlier i made an issue here #40. I found out what causing it, it's the entity-generator.
To Reproduce
Steps to reproduce the behavior:
- Clone from https://github.com/rizchaerul/bug
- Run pnpm i
- Run yarn start:dev
- It will show error
- Run pnpm uninstall @mikro-orm/entity-generator
- The error is gone
Versions
Dependency | Version |
---|---|
node | ? |
typescript | 4.3.5 |
mikro-orm | 4.5.9 |
your-driver | postgresql |
Wait, i'll check the repo one more time. Edit: should be okay now
It works just fine for me (used yarn for installation, not really interested in trying out different package managers).
What I said is #40 still applies. If you see that error, your local installation is wrong - you probably have multiple installations of some packages (probably @mikro-orm/knex
as that is where the SqlEntityManager
is defined).
Yeah i just tried yarn and it works, so is it pnpm fault?
or it was just messed up installation, have you tried removing node_modules and the lock file?
What i tried is this
- Remove node_modules, lock file, dist
- yarn install
- yarn start:dev -> works fine
- Remove node_modules, lock file, dist
- pnpm install
- pnpm run start:dev -> error
- pnpm uninstall @mikro-orm/entity-generator
- pnpm run start:dev -> works fine again
So yeah i don't think i'm doing something wrong, it must be pnpm at fault here. So i'll just use yarn for my project.