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

422
Views
Vue 3 TypeScript - Problema con `App.vue` en `main.ts` y Pruebas

Estoy usando TypeScript con Vue y me encuentro con este error en mi archivo main.ts

Información de errores

Aquí está mi archivo shims-vue.d.ts :

 /* eslint-disable */ declare module "*.vue" { import type { DefineComponent } from "vue"; const component: DefineComponent<{}, {}, any>; export default component; }

My App.vue es solo una plantilla simple sin ningún script o style :

 <template lang="pug"> router-view </template>

No quiero hacer "noImplicitAny": false en tsconfig.js , entonces, ¿hay alguna solución a este problema aparte de eso?

Además, lo mismo sucede en los casos de prueba,

 import { shallowMount } from "@vue/test-utils"; import Layout from "@/plugin/layout/Layout.vue"; describe("Layout.vue", () => { it("renders props.msg when passed", () => { const wrapper = shallowMount(Layout); expect(wrapper.text()).toMatch("sidebar"); }); });

El error es: ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

El motivo del error es que nombró su archivo vue App.vue.js .

La solución: cambiar el nombre de App.vue.js a App.vue

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!