Add frontend library

When adding a library in the frontend it does it without problems, but when executing it it gives errors…
https://www.primefaces.org/primevue/autocomplete
I’m with node + primevue, I have a json with static data, I want to use autocomplete on a field and if it exists, fill 2 or 3 of the json and put them in read mode. I could do this natively but if I add it to the project it breaks.

Provide more details of the library you are installing and the error you get, so that you get a better answer from anyone with a solution.