plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] Cannot find module xxx in background script when running the pnpm built package

Open KingWu opened this issue 9 months ago • 3 comments

What happened?

Plasmo version: 0.89.3 node version: 20.3.1

i import 3rd party library in the background script. after run pnpm build, load the package.

Will have error "Cannot find module xxx"

Version

Latest

What OS are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Relevant log output

No response

(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.

KingWu avatar Oct 19 '24 03:10 KingWu