I have a Vue application and everything loads fine, but when the router view changes I am getting an error:
Uncaught TypeError: pJS_tag is null
This is because the 'id=particle-js' element is not present on all views. Is there someway to unload the library? Or another way I can remove this error?
I have a Vue application and everything loads fine, but when the router view changes I am getting an error:
This is because the 'id=particle-js' element is not present on all views. Is there someway to unload the library? Or another way I can remove this error?
I am initialising the library like this:
window.particlesJS.load("particles-js", "/static/particles.json");