Open davvar opened 1 year ago
Facing the same problem. Any solution?
Same problem
Same problem here
Same problem here
I use webpack, but I had exactly the same error.
I used nodenext to solve it, but it didn't help. However, this is still required.
"module": "nodenext",
"moduleResolution": "nodenext"
After many hours, I found a solution. The problem turned out to be that webpack converted dynamic imports into require(), regardless of the module in tsconfig.
Solution:
import(/* webpackIgnore: true */'@adminjs/nestjs')
I hope this helps you in your search for a solution with a swc. Perhaps it has a similar method for saving dynamic imports inside bundle.
After changing the
builder
toswc
app stopped workingAnd this is my module that is simply being imported in
app.module.ts