plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] "Cannot find module 'node:stream'" when use LuanRT / YouTube.js

Open zshnb opened this issue 10 months ago • 10 comments

What happened?

Hello, I want to use YouTube.js to download video in extension, when I installed dependency then call api in extension, I got error "Cannot find module 'node:stream'", I want to know how can I use this lib in plasmo framework?

reproduce step is here:

  1. install YouTube.js
  2. call YouTube.js api
  3. report error

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

🔴 ERROR  | Build failed. To debug, run plasmo dev --verbose.
🔴 ERROR  | Failed to resolve 'node:stream' from './node\_modules/.pnpm/@[email protected]/node\_modules/@fastify/busboy/lib/main.js'
🔴 ERROR  | Cannot find module 'node:stream'
🔴 ERROR  | Resolvers must return an absolute path, @plasmohq/parcel-resolver-post returned: node:stream

(OPTIONAL) Contribution

  • [ ] I would like to fix this BUG via a PR

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I checked the current issues for duplicate problems.

zshnb avatar Apr 25 '24 09:04 zshnb

Same Problem, could you please update the version of Parcel

jiweiyuan avatar May 09 '24 15:05 jiweiyuan

@zshnb this problem might because parcel version, could you please try upgrade the version of parcel when you're convenient

jiweiyuan avatar May 09 '24 19:05 jiweiyuan

@zshnb this problem might because parcel version, could you please try upgrade the version of parcel when you're convenient

Hi sorry for reply later, I don't see parcel in my package.json, how can I update it?

zshnb avatar May 12 '24 07:05 zshnb

@jiweiyuan Hi could you please help me about this problem?

zshnb avatar May 24 '24 02:05 zshnb

Sorry, I think this might be the Plasmo’s problem. Plasmo should update its parcel version. In fact, I am waiting author updates it’s version

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: Sleek Zheng @.> Sent: Friday, May 24, 2024 3:50:34 AM To: PlasmoHQ/plasmo @.> Cc: Jiwei,Yuan @.>; Mention @.> Subject: Re: [PlasmoHQ/plasmo] [BUG] "Cannot find module 'node:stream'" when use LuanRT / YouTube.js (Issue #960)

@jiweiyuanhttps://github.com/jiweiyuan Hi could you please help me about this problem?

— Reply to this email directly, view it on GitHubhttps://github.com/PlasmoHQ/plasmo/issues/960#issuecomment-2128397874, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AFQTJJGAAXQCZJY65OQZ6NTZD2THVAVCNFSM6AAAAABGYQWD4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRYGM4TOOBXGQ. You are receiving this because you were mentioned.Message ID: @.***>

jiweiyuan avatar May 24 '24 05:05 jiweiyuan

See #813 - I'm blocked by this since last year, if anyone wanna take a quick stab at it, that'd be great!

louisgv avatar May 24 '24 06:05 louisgv

See #813 - I'm blocked by this since last year, if anyone wanna take a quick stab at it, that'd be great!

thanks, so we need plasmo to do the upgrade right? does anyone can help to merge this pr?

zshnb avatar May 24 '24 10:05 zshnb

@louisgv or can we try mention plasmo's member to help merge this?

zshnb avatar May 25 '24 08:05 zshnb

Any progress here?

seawatts avatar Oct 01 '24 17:10 seawatts

no, still blocking

zshnb avatar Oct 07 '24 05:10 zshnb