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

587
Views
Vue 3 + TypeScript TS2614: el módulo '"*.vue"' no tiene ningún miembro exportado

Estoy tratando de hacer una exportación con nombre en un componente como este:

 export interface ITest { t: String }

para llamarlo desde otro:

 import { ITest } from '@/components/Test.vue'

Y tiene el error:

TS2614: Module '"*.vue"' has no exported member 'ITest '. Did you mean to use 'import ITest from "*.vue"' instead?

Y si cambio a: import ITest from '@/components/Test.vue'

El error ahora dice: Module '"(path)/Test.vue"' has no default export. Did you mean to use 'import { ITest } from "(path)/Test.vue"' instead?

¿Cómo hacer una exportación con nombre en Vue usando TypeScript?

Vue 3, TypeScript, Webpack 5.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

export interface ITest { t: string; }
  • Cambie Test.vue a Test.ts , y también impórtelo.
  • Cambiar tipo de String a string de tipo mecanografiado
over 4 years ago · Santiago Trujillo 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!