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

514
Views
Usando VueJS + FeathersJS + Feathers-Vuex, obtengo este error: Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default no está definido

Aquí está el error:

 Uncaught TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.default is undefined <anonymous> index.js:7 js app.js:96 __webpack_require__ app.js:397 fn app.js:643 <anonymous> main.js:6 js app.js:74 __webpack_require__ app.js:397 __webpack_exports__ app.js:1531 O app.js:446 <anonymous> app.js:1532 <anonymous> app.js:1534 and here is my index.js (from the documentation for feathers-vuex) // src/store/index.js import Vue from 'vue' import Vuex from 'vuex' import { FeathersVuex } from '../feathers-client' import auth from './store.auth' Vue.use(Vuex) Vue.use(FeathersVuex) const requireModule = require.context( // The path where the service modules live './services', // Whether to look in subfolders false, // Only include .js files (prevents duplicate imports`) /\.js$/ ) const servicePlugins = requireModule .keys() .map(modulePath => requireModule(modulePath).default) console.log('1: ', requireModule.keys()) console.log('2: ', servicePlugins) export default new Vuex.Store({ state: {}, mutations: {}, actions: {}, plugins: [...servicePlugins, auth] })

Además, aquí está mi main.js import Vue from 'vue' import VueCompositionApi from '@vue/composition-api' Vue.use(VueCompositionApi)

 import App from './App.vue' import router from './router' import store from './store' import './assets/styles/base.css' import './assets/styles/chat.css' Vue.config.productionTip = false new Vue({ router, store, render: h => h(App) }).$mount('#app')

Parece que el problema está en @vue/composition-api pero he estado investigando durante días y no puedo encontrar la manera de resolver este problema. Estoy tratando de reconstruir el chat de plumas-vuex desde el sitio de FeathersJS utilizando la versión más reciente de VueJS, FeathersJS y Feathers-Vuex. ¡Cualquier ayuda sería muy apreciada!

about 4 years ago · Juan Pablo Isaza
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!