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

258
Views
whatsapp-web.js integrado con vuejs

soy nuevo en vuejs..

No entiendo cómo vincular este vue js y whatapp-web.js

https://github.com/pedroslopez/whatsapp-web.js

Instalar en pc

 vue init webpack-simple whatsapp-vue cd whatsapp-vue npm i whatsapp-web.js npm install npm run dev

principal.js

 import Vue from 'vue' import App from './App.vue' const { Client } = require('whatsapp-web.js'); const client = new Client(); new Vue({ el: '#app', render: h => h(App) })

Recibí un error cuando npm ejecuta dev

 client?cd17:167 ./node_modules/whatsapp-web.js/index.js Module parse failed: Unexpected token (24:4) You may need an appropriate loader to handle this file type. | List: require('./src/structures/List'), | Buttons: require('./src/structures/Buttons'), | ...Constants | }; | @ ./src/main.js 4:15-41 @ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

pero funciona con momentjs

ingrese la descripción de la imagen aquí

alguien me puede ayudar con un ejemplo?

gracias

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!