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

1K
Views
Escriba '{ clase: cadena; }' no se puede asignar al tipo 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'

Estoy usando vue, ts, vite con extensión volar.

En el código Vs, aparece el Type '{ class: string; }' is not assignable to type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'. Property 'class' does not exist on type 'DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>'. Did you mean 'className'?ts(2322)

cuando hago <div class=""></div> para la class

Cuando paso el mouse sobre el div , veo (property) div: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>

No sé qué está haciendo que el código vs asuma que estoy usando reaccionar. El tipo de archivo es .vue

Deshabilité eslint y sigo recibiendo el error. Funciona cuando ejecuto la aplicación, pero es molesto ver ese error en vscode.

¿Se supone que debo agregar algún archivo d.ts ?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Agregar esto lo arregló. Ver aquí: https://github.com/johnsoncodehk/volar/discussions/592

 // tsconfig.json { "compilerOptions": { // ... "types": [ "vite/client", // if using vite // ... ] } }

Creo que cuando agregué el libro de cuentos, agregó tipos de reacción.

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!