Skip to content
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

TypeError: url_1.URL is not a constructor #102

Open
Venegrad opened this issue Nov 23, 2022 · 1 comment
Open

TypeError: url_1.URL is not a constructor #102

Venegrad opened this issue Nov 23, 2022 · 1 comment

Comments

@Venegrad
Copy link

Im trying to create first step, from oficial instruction

const Twitter = require('twitter-v2');

const client = new Twitter({
  bearer_token: token,
  consumer_key: '***',
  consumer_secret: '***',

});

const { data } = await client.get('tweets', { ids: '1228393702244134912' });
console.log(data);

And get an error:

TypeError: url_1.URL is not a constructor.

I cant undestand what im do wrong, how i can get tweets from specific user? Help pls/

@Yagasaki7K
Copy link

Same issue here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants