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 · 3 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 · 3 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?

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

2 participants