Bom dia! Estou tendo muitos problemas com as importações / exportações. sempre está dando erro porque esá usando commonjs ou es modules.
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'E:\Bkp Windows 11\alura\node\API ORM\api\routes' is not supported resolving ES modules imported from E:\Bkp Windows 11\alura\node\API ORM\api\index.js at new NodeError (node:internal/errors:372:5) at finalizeResolution (node:internal/modules/esm/resolve:433:17) at moduleResolve (node:internal/modules/esm/resolve:1009:10) at defaultResolve (node:internal/modules/esm/resolve:1218:11) at ESMLoader.resolve (node:internal/modules/esm/loader:580:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18) at ModuleWrap. (node:internal/modules/esm/module_job:80:40) at link (node:internal/modules/esm/module_job:78:36) { code: 'ERR_UNSUPPORTED_DIR_IMPORT', url: 'file:///E:/Bkp%20Windows%2011/alura/node/API%20ORM/api/routes'
Sabém como resolver isso?