PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.5k stars 365 forks source link

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

Open KingWu opened 2 weeks ago

KingWu commented 2 weeks ago

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

Code of Conduct

HansBhatia commented 1 week ago

hey, did you figure this out yet - I have a similar problem within the content scripts...