plasmo
plasmo copied to clipboard
[BUG] Use Vue UI libraries Such as PrimeVue
What happened?
A bug 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
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.