Skip to content

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

@zshnb

Description

@zshnb

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/@fastify+busboy@2.1.1/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions