fix:err_package_path_not_exported error in typescript
I fixed the error by adding "require" field to the "exports" field in package.json.
AdminJS packages are ESM-only. Require exports are omitted on purpose
AdminJS packages are ESM-only. Require exports are omitted on purpose
Without that I can't get it to work in my typescript project. I tried all kind of configurations in tsconfig without success. That was the thing that finally did it for me.
set module to nodenext and remove moduleResolution, your project must be esm compatible though
Still won't work. I had to switch to bun.js. It's working without issues now.