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

205
Views
Cualquiera que tenga una idea de cómo arreglar app.use no es una función después de instalar Element-plus usando npm en vue3

Entonces, después de instalar la biblioteca de componentes basada en Vue 3.0 (Element-Plus) en mi proyecto usando npm install element-plus --save, aparece este error que dice que app.use no es una función. También he importado Element completamente así:

 import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import App from './App.vue' import router from './router' import "./assets/Css/Style.css" app.use(ElementPlus) createApp(App).use(router).mount('#app').

Pero me sale el error debajo de la lista. TypeError no detectado: app.use no es una función

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

0

Debe inicializar Vue con createApp() , antes de poder usar .use . Como esto:

 import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import App from './App.vue' import router from './router' import "./assets/Css/Style.css" const app = createApp(App) app.use(ElementPlus) app.use(router) app.mount('#app').
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!