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

553
Views
Texto mecanografiado - TS1192: el módulo no tiene una exportación predeterminada

Estoy desarrollando una aplicación en vue3 con soporte de mecanografiado. No se porque pero cada vez que compilo codigo con npm me muestra esto:

TS1192: Module '"/home/admin/Desktop/projects/myProj/frontend/components/SectionTitle.vue"' has no default export.

por cierto, he habilitado allowSyntheticDefaultImports en mi tsconfig.json

 "compilerOptions": { "outDir": "dist", "removeComments": true, "lib": ["DOM", "ES2020", "ES2020.Promise"], "module": "es2020", "target": "es2015", "allowJs": true, "jsx": "preserve", "moduleResolution": "node", "allowSyntheticDefaultImports": true, },
 webpack version: 5.50.0 typescript version: 2.8.3

¿Cómo exporto componentes?

 export default defineComponent({ ... })
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Probar

 const component = defineComponent({ }) export default component;

about 4 years ago · Juan Pablo Isaza Report

0

Instalar mecanografiado 4.3.2

package.json

 "typescript": "4.3.2",
about 4 years ago · Juan Pablo Isaza Report
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!