Open Neos21 opened 4 weeks ago
According to many Nestjs discussions, the recommended way is to use Node v22+ and run your app with --experimental-require-module
until it gets ported to stable Nodejs release.
Alternatively, if you don't need to access lowdb in constructor, import it with a dynamic import at the place you need.
I want to use lowdb with NestJS. But lowdb is ESM, and NestJS is CommonJS. How to configure this?