-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KEEP GETTING TypeError: The "listener" argument must be of type Function. Received type object #96
Comments
Hi, This is a duplicate of #94. Either you're using an old version of Node.js, either there's a dependency that modifying native Check that, then tells me if your problem is still here :) |
Re, Please check your (sub)dependencies, and update them. |
I'm using react and after reinstalling node the problem still persists. checkListener
HTMLUnknownElement.callCallback |
In your stack trace, you seems to use https-browserify, a package that hasn't been updated since 5 years (!), providing front-end https module. Please also note that this package is meant to be used on back-end side, not front-end. As I said in my previous message, your Node version or/and your dependencies are out-of-date. This is not a problem of this lib and we shall not consider applying patches that only serves to allows usage with outdated Node & dependencies. |
Here is the code that I have written:
`const client = new TwitterApi({
appKey: API_KEY,
appSecret: API_KEY_SECRET,
accessToken: ACCESS_TOKEN,
accessSecret: ACCESS_TOKEN_SECRET,
})
// const client = new TwitterApi(BEARER_TOKEN);
async function makeTweet() {
const createdTweet = await client.v1.tweet('twitter-api-v2 is awesome!')
console.log('Tweet', createdTweet.id_str, ':', createdTweet.full_text)
}
`
Is the API broken or am I making a mistake somewhere? Thanks
The text was updated successfully, but these errors were encountered: