Code Monkey home page Code Monkey logo

Comments (6)

jrCleber avatar jrCleber commented on May 18, 2024

Esse erro está associado a qual evento?
Está se repetindo com qual frequência?

from whatsapp-api.

JorgeDorio avatar JorgeDorio commented on May 18, 2024

Todas as rotas de Send Message, mas pra simplificar, estou tentando a de enviar texto simples

A autorização é via apikey, o payload é o mesmo disponibilizado na collection do postman, apenas com a alteração para o número que desejo enviar.

Tentei rodar em dev e em prod, mas ambos retornaram o mesmo erro.

Inclusive, a proncipio não tinha conseguido transpilar pois estava dando erro de tipagem na função connectToWhatsapp de whatsapp.service:

The inferred type of 'connectToWhatsapp' cannot be named without a reference to '@adiwajshing/baileys/node_modules/@hapi/boom'. This is likely not portable. A type annotation is necessary.

382   public async connectToWhatsapp() {
                   ~~~~~~~


Found 1 error in src/whatsapp/services/whatsapp.service.ts:382

Removi a validação de tipo do tsconfig e consegui rodar em prod.

from whatsapp-api.

jrCleber avatar jrCleber commented on May 18, 2024

Intalou com o npm ou com o yarn?
Passando o mouse sobre a linha 382, qual é a mensagem?

Esse erro é bem incomum...

Acessa o 👉🏼 grupo e posta a sua dúvida lá.

from whatsapp-api.

jrCleber avatar jrCleber commented on May 18, 2024
  • Dê o comando: git pull;
  • Delete a pasta node-modules;
  • Reinstale as dependências: npm i;
  • Inicie novamente a aplicação.

from whatsapp-api.

jrCleber avatar jrCleber commented on May 18, 2024
  • Dê o comando: git pull;
  • Delete a pasta node-modules;
  • Reinstale as dependências: npm i;
  • Inicie novamente a aplicação.

@glauco-oliveira executa as instruções acima.

from whatsapp-api.

jrCleber avatar jrCleber commented on May 18, 2024

Acessa o 👉🏼 grupo e posta a sua dúvida lá.

@glauco-oliveira

from whatsapp-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.