Skip to content

Error: Cannot find module 'mikro-orm' with Webpack #413

@thekevinbrown

Description

@thekevinbrown

Describe the bug
When using the recommended webpack config, mikro-orm is excluded from the webpack output because it's configured as an external.

Stack trace
Not needed.

To Reproduce

  1. Bundle a Mikro app with this webpack config:
    https://mikro-orm.io/docs/deployment#webpack-configuration

Expected behavior
mikro-orm should be available.

Question
What was the intent in marking Mikro as an external? I had this previously working with the old version of the docs, so what was the motivation behind this change?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions