Skip to content

MikroOrm can't resolve drivers that i'm not currently using #208

Answered by B4nan
george-taschina asked this question in General
Discussion options

You must be logged in to vote

This is caused by using a bundler, it's up to you to configure it properly and mark those dependencies as external. We mark all those as optional peer dependencies, I don't see what else I could do. I believe this is specifically a webpack problem, modern bundlers like vite should resolve this correctly and respect the optional peer dependencies.

Note that some of those errors are coming from knex, not the ORM itself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@george-taschina
Comment options

Answer selected by george-taschina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #207 on January 31, 2025 15:45.