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] Build fails due to missing module 'node:buffer' after adding Cheerio dependency #1151

Open
2 of 3 tasks
gopkg-dev opened this issue Jan 1, 2025 · 0 comments
Open
2 of 3 tasks
Labels
bug Something isn't working

Comments

@gopkg-dev
Copy link

What happened?

The build fails when running plasmo dev after adding cheerio as a dependency to my project. The error indicates that the module node:buffer cannot be found.

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome

Relevant log output

> node -v
v20.17.0
> pnpm dev
> plasmo dev

🟣 Plasmo v0.89.4
🔴 The Browser Extension Framework
🔵 INFO   | Starting the extension development server...
🔵 INFO   | Building for target: chrome-mv3
🔵 INFO   | Loaded environment variables from: []
🔴 ERROR  | Build failed. To debug, run plasmo dev --verbose.
🔴 ERROR  | Failed to resolve 'node:buffer' from './node\_modules/.pnpm/[email protected]/node\_modules/undici/index.js'
🔴 ERROR  | Cannot find module 'node:buffer'
🔴 ERROR  | Resolvers must return an absolute path, @plasmohq/parcel-resolver-post returned: node:buffer

(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.
@gopkg-dev gopkg-dev added the bug Something isn't working label Jan 1, 2025
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

1 participant