Adding deps to node.externalPackages didn't resolve the error
Hi team! im running in to the error below
tried a few variations
but didnt fix the issue
any idea what's wrong? thank you.
6 Replies
The name of this package looks like "youtubei", not "youtubei.js" based on https://www.npmjs.com/package/youtubei — this name should match the name of the package in your package.json file.
npm
youtubei
Simple package to get information from youtube such as videos, playlists, channels, video information & comments, related videos, up next video, and more!. Latest version: 1.3.7, last published: 9 days ago. Start using youtubei in your project by running
npm i youtubei
. There are 17 other projects in the npm registry using youtubei.If that doesn't work let us know, it could be that packages with imports that are different than the name of their packages don't work correctly here.
thanks tom. my bad, i tried that too and it didnt work, forgot to include
hmm i didnt install that pkg explicitly, i think it comes with langchain installed. lemme try installing it
yea didnt work too
hi tom, did u have the chance to look into it? im working off the starter code from convex, changing the import here
https://github.com/get-convex/convex-ai-chat-langchain/blob/main/convex/ingest/load.ts#L5 to
There is confusingly also a
youtubei.js
package: https://www.npmjs.com/package/youtubei.js
I think I was able to get a successful npx convex dev
by running npm install youtube-transcript youtubei.js
and setting externalPackages: ["youtube-transcript", "youtubei.js"]
? Curious if that works for you
I don't have a great understanding for why npm install langchain
+ the externalPackages: ["langchain"]
was not enoughnpm
youtubei.js
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).. Latest version: 9.2.0, last published: 4 days ago. Start using youtubei.js in your project by running
npm i youtubei.js
. There are 32 other projects in the npm registry using youtubei.js.oh sorry about that re package name vs import name! I was confused here.
thank you sarah, you saved me!!
no prob. thanks for helping to look into it!