TypeError: chat.isEphemeralSettingOn is not a function
See original GitHub issueIs 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
- run application
- wait to scan the qr
- 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:
- Created a year ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
v1.18.0 has just been released with a fix for this. Please update!
Please check https://github.com/pedroslopez/whatsapp-web.js/issues/1741