PlasmoHQ / plasmo

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

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

Open jfl913 opened 3 weeks ago

jfl913 commented 3 weeks ago

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

Code of Conduct