plasmo
plasmo copied to clipboard
[BUG] NX & React - No rendering of content scripts ui
What happened?
Using nx in "integrated repo" mode https://nx.dev/concepts/integrated-vs-package-based#integrated-repos, there is sometimes no package.json for each package.
If you're using react and have set it as dependency in your repo's root package and not in the extension package, the parcel runtime doesn't seem to detect it.
https://github.com/PlasmoHQ/plasmo/blob/0c8e4fcd5d36772c4d4674dc96c84a1749ce4af6/core/parcel-runtime/src/index.ts#L39
It may build and produce a build but it will not render your content scripts ui.
Version
Latest
What OS are you seeing the problem on?
No response
What browsers are you seeing the problem on?
Chrome
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.
Yeah, I also found this problem, does anyone know how to solve it?