question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: chat.isEphemeralSettingOn is not a function

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

i have and error when i try to send a message, i’ve been working with this library like a 15 days, and I had not seen an error like this

Expected behavior

i expect to send a message an send a media file

Steps to Reproduce the Bug or Issue

  1. run application
  2. wait to scan the qr
  3. on ready event, try to send a message

Relevant Code

client.on(“ready”, async () => { console.log(“connected”); const media = MessageMedia.fromFilePath(“./build/CALENDARIO.xlsx”); await client .sendMessage( ${process.env.COUNTRY_CODE}${process.env.NUMBER4}@c.us, media ) .catch((error) => console.log(error)); });

Browser Type

Google Chrome

WhatsApp Account Type

Standard

Does your WhatsApp account have multidevice enabled?

Yes, I am using Multi Device

Environment

node.js

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
pedroslopezcommented, Oct 21, 2022

v1.18.0 has just been released with a fix for this. Please update!

0reactions
robjean9commented, Oct 24, 2022

any update please, the same issue here

Please check https://github.com/pedroslopez/whatsapp-web.js/issues/1741

Read more comments on GitHub >

github_iconTop Results From Across the Web

Javascript: TypeError: $.chat is not a function - Stack Overflow
I have the following javascript code snippet, which defines the chat funtion, it should create a chat in a Sharepoint site.
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
How to Handle JavaScript Uncaught TypeError: “x” is Not a ...
The Javascript TypeError: "x" is not a function occurs when calling a function on a value or object, which is not actually a...
Read more >
Uncaught TypeError: childGe.isChecked is not a function
Hi All , After the San Diego upgrade , the magnifying glass searchers are not working only in the Incident form.
Read more >
TypeError: u.isMatchingType is not a function - JavaScript
isMatchingType is not a function TypeError: u. ... Sendbird Chat API/SDK JavaScript ... Error: Uncaught (in promise): TypeError: u.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found