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

138
Views
Cómo exportar enumeraciones desde un proyecto acumulativo

Tengo un paquete desde donde estoy exportando enumeraciones Animation.ts

 enum AnimationType { FADEIN = 'fadein', FADEOUT = 'fadeout', BLINK = 'blink', SHAKE = 'shake', WIGGLE = 'wiggle', } export {AnimationType};

Este es mi archivo de configuración acumulativo

 export default [ { input: "src/index.ts", output: [ { file: packageJson.main, format: "cjs", sourcemap: false, }, { file: packageJson.module, format: "esm", sourcemap: false, }, ], plugins: [ resolve(), commonjs(), json({compact: true}), typescript({ tsconfig: "./tsconfig.json" }), filesize(), postcss({ writeDefinitions: true, plugins:[autoprefixer], }) ], }, { input: "dist/esm/types/index.d.ts", output: [{ file: "dist/index.d.ts", format: "esm" }], plugins: [dts()], }, ];

Lo estoy exportando como un paquete pero no puedo importar enumeraciones. Recibo este error cuando el módulo de importación no tiene un miembro exportado 'AnimationType'.ts (2305)

Cómo resolver este error.

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!