Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

310
Views
No se puede importar el módulo del módulo ES 6 que requiere

Mi módulo tiene el type configurado como module en package.json, por lo tanto, es ES 6.

Necesito importar un módulo (que hago usando import ), pero este módulo ( dexie-encrypted ) require un tercer módulo, por lo que falla:

 Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /Users/xxx/xxx/node_modules/dexie/dist/modern/dexie.mjs at new NodeError (node:internal/errors:329:5) at Module.load (node:internal/modules/cjs/loader:970:11) at Function.Module._load (node:internal/modules/cjs/loader:813:14) at Module.require (node:internal/modules/cjs/loader:996:19) at require (node:internal/modules/cjs/helpers:92:18) at Object.<anonymous> (/Users/xxx/xxx/node_modules/dexie-encrypted/dist/applyMiddleware.js:5:41) at Module._compile (node:internal/modules/cjs/loader:1092:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1121:10) at Module.load (node:internal/modules/cjs/loader:972:32) at Function.Module._load (node:internal/modules/cjs/loader:813:14) { code: 'ERR_REQUIRE_ESM' }

¿Cómo se soluciona una situación así?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!