plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] Use Vue UI libraries Such as PrimeVue in Content Scripts UI

Open jfl913 opened this issue 1 year ago • 2 comments

What happened?

Hello,I used "https://github.com/PlasmoHQ/examples"-With Vue, I would like to use a component package (https://primevue.org/) inside the content folder files,or popup.vue. To add to popup/options/newtab etc we have a defineOptions method:

import PrimeVue from 'primevue/config'; import type { App } from "vue"

defineOptions({ prepare(app: App) { app.use(PrimeVue); } }) Where can I setup primevue correctly. But within the files of the Content folder this does not work, I use the same code but the components do not appear.

Would you have any practical examples of how to use the component library within the contents?

I have been trying for a few hours and it has been very frustrating for me. If possible, thank you for your help

Version

Latest

What OS are you seeing the problem on?

Windows, MacOSX, Linux, Other

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.

jfl913 avatar Jun 12 '24 17:06 jfl913

I have also encountered the same problem. Do you know how to solve it now?

a839408177 avatar Mar 10 '25 08:03 a839408177

I have also encountered the same problem. Do you know how to solve it now?

It’s not supported at the moment. You could give wxt a try instead.

jfl913 avatar Mar 10 '25 13:03 jfl913