Hi,I encountered a problem with the commonjs and es.My nest project configuration file is now like this.Okay, it compiles smoothly, but once I make a request, there will be this error.
I'm thinking, Nest can compile import into commonjs, why can't dynamic import also be compiled into commonjs? Or is it that this can actually be solved, but I didn't configure it correctly?
#Error [ERR_REQUIRE_ESM]: require() of ES Module
3 messages · Page 1 of 1 (latest)
Even if I change the "await import" to "require", it will still report this error
I cannot change the "module" in tsconfig.json to a value other than "commonjs", otherwise this error #1095314139045437490 message will be reported.