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

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

Open
2 of 3 tasks
zshnb opened this issue Apr 25, 2024 · 11 comments
Open
2 of 3 tasks

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

zshnb opened this issue Apr 25, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@zshnb
Copy link

zshnb commented Apr 25, 2024

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

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@zshnb zshnb added the bug Something isn't working label Apr 25, 2024
@jiweiyuan
Copy link

Same Problem, could you please update the version of Parcel

@jiweiyuan
Copy link

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

@zshnb
Copy link
Author

zshnb commented May 12, 2024

@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
Copy link
Author

zshnb commented May 24, 2024

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

@jiweiyuan
Copy link

jiweiyuan commented May 24, 2024 via email

@louisgv
Copy link
Contributor

louisgv commented May 24, 2024

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

@zshnb
Copy link
Author

zshnb commented May 24, 2024

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
Copy link
Author

zshnb commented May 25, 2024

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

@seawatts
Copy link

seawatts commented Oct 1, 2024

Any progress here?

@zshnb
Copy link
Author

zshnb commented Oct 7, 2024

no, still blocking

@rothnic
Copy link

rothnic commented Oct 31, 2024

I'm getting an error of cannot find module 'node:buffer' when using the metascraper library to extract metadata from the page.

Not sure if it is related, but overall I see references to ways to polyfill node functions. I found this repository using webpack to resolve the dependencies, but not sure how to apply to plastmo/parcel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants