Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

warning: react-native-ytdl is out of date, even though installed@latest (yarn add react-native-ytdl@latest) #64

Open
edo92 opened this issue Dec 26, 2020 · 4 comments

Comments

@edo92
Copy link

edo92 commented Dec 26, 2020

WARNING: react-native-ytdl is out of date! If the latest port is available, update with "npm install react-native-ytdl@latest".
throws warning even though is install react-native-ytdl@latest

@AbelTesfaye
Copy link
Collaborator

Fixed. Run npm i react-native-ytdl@latest in your project root folder to remove the warning

@edo92
Copy link
Author

edo92 commented Jan 5, 2021

I have deleted node_modules and tried npm i react-native-ytdl@latest but still throwing warning. Is there any way to silence the warning from the module ?

@edo92
Copy link
Author

edo92 commented Jan 5, 2021

I think the problem comes from utiles.js file where tag_name is not matching with the current version

if (JSON.parse(response).tag_name !==v${pkg.version}) { console.warn("\u001b[33mWARNING:\u001b[0m react-native-ytdl is out of date! If the latest port is available, update with \"npm install react-native-ytdl@latest\"."); }

when i run npm install react-native-ytdl@latest it installs v4.2.1
but in JSON.parse(response).tag_name it is v4.4.0
that is why it always throws this warning

@OmarSaidIbrahim
Copy link

OmarSaidIbrahim commented May 29, 2021

Hi guys, is there any news about this ?
I still get the warning.

EDIT:
I have checked and the utils.js file and it basically sends a request to the wrong GitHub api repository.

https://api.github.com/repos/fent/node-ytdl-core/releases/latest

the above is the FENT's repository, while the react-native version has no version control api. I guess im just gonna remove it for the moment, until a version control api will be uploaded for this repository as well.

fent rep = 4.8.2
this rep = 4.8.0 (mismatch)

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

No branches or pull requests

3 participants