question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
thekevinbrowncommented, Mar 23, 2020

@B4nan I can confirm that 3.5.1 fixes the initEnumValues issue for me. Thanks again!

For anyone who’s not on Slack that’s following this conversation, I’m creating a webpack sample to show how to set up Mikro in that context.

1reaction
thekevinbrowncommented, Mar 19, 2020

No worries, I’ll do up a proper reproduction and see what I learn.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mikro-orm CLI: Cannot find module 'ts-node' - Stack Overflow
I'm attempting to use the mikro-orm CLI but am getting a ts-node error:
Read more >
Deployment - MikroORM
Webpack can be used to bundle every entity and dependency: you get a single file that contains every required module/file and has no...
Read more >
@mikro-orm/nestjs - npm
The MikroORM module for NestJS. Quick Start. First install the module via yarn or npm and do not forget to install the database ......
Read more >
How to fix Error: cannot find module "webpack" - Educative.io
The Cannot find module webpack occurs when webpack is not globally installed. It is a problem with the npm script or application. You...
Read more >
mikro-orm CLI: Cannot find module 'ts-node' - appsloveworld
Related Query · Node cannot find module "fs" when using webpack · Node --experimental-modules - Error: Cannot find module · Cannot find module...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found