SuspiciousLookingOwl / scrape-yt

Simple lib to scrape information from youtube such as search results, video information, related videos, playlist information and up next video
https://www.npmjs.com/package/scrape-yt
MIT License
10 stars 3 forks source link

[BUG] Failed to compile Can't resolve 'worker_threads' #19

Closed vwebtech closed 4 years ago

vwebtech commented 4 years ago

Got this issue

trying to use it on nodejs app

Failed to compile ./node_modules/scrape-yt/dist/index.js Module not found: Can't resolve 'worker_threads' in '\node_modules\scrape-yt\dist'

SuspiciousLookingOwl commented 4 years ago

This seems to be caused by an incompatible Node version, what Node version are you using?

Fanna1119 commented 4 years ago

Also having this issue. Node v14.12.0

SuspiciousLookingOwl commented 4 years ago

I'm still not sure what causes this, you can try the beta version (npm i scrape-yt@beta) but I don't think you will able to use useWorkerThread option if you need it.

I tried it on Node v14.12.0 using nvm on WSL, and it didn't gave me any error.

SuspiciousLookingOwl commented 4 years ago

Closing this now as a27991f2370906c43ddf518d3875ec47d927e04e should've fixed this. Also published the update on version 1.4.5.

If this still persists, feel free to re-open the issue.