Error: Cannot find module 'mikro-orm' with Webpack
See original GitHub issueDescribe 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
- 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:
- Created 4 years ago
- Comments:10 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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.
No worries, I’ll do up a proper reproduction and see what I learn.