-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: class heritage Vector3d is not an object or null #57
Comments
Steps to reproduce:
|
@matteobruni It seems like the Vue 3 plugin might not work properly, is there any way you could help us fix it? |
It’s a problem with 3.2.1, I already discussed this on Discord. I’m looking for a solution, there’s a problem with dynamic imports and Vite. You can install 3.1.0 (all packages needed) for the core library |
im using react and i install suggested version for core, any suggestion please..!!
|
I've said all packages for a reason, every tsparticles package needs to be 3.1.0 |
I had to ask Chat GPT to extract it from my "resolutions": {
"@tsparticles/basic": "3.1.0",
"@tsparticles/engine": "3.1.0",
"@tsparticles/interaction-external-attract": "3.1.0",
"@tsparticles/interaction-external-bounce": "3.1.0",
"@tsparticles/interaction-external-bubble": "3.1.0",
"@tsparticles/interaction-external-connect": "3.1.0",
"@tsparticles/interaction-external-grab": "3.1.0",
"@tsparticles/interaction-external-pause": "3.1.0",
"@tsparticles/interaction-external-push": "3.1.0",
"@tsparticles/interaction-external-remove": "3.1.0",
"@tsparticles/interaction-external-repulse": "3.1.0",
"@tsparticles/interaction-external-slow": "3.1.0",
"@tsparticles/interaction-external-trail": "3.1.0",
"@tsparticles/interaction-particles-attract": "3.1.0",
"@tsparticles/interaction-particles-collisions": "3.1.0",
"@tsparticles/interaction-particles-links": "3.1.0",
"@tsparticles/move-base": "3.1.0",
"@tsparticles/move-parallax": "3.1.0",
"@tsparticles/plugin-absorbers": "3.1.0",
"@tsparticles/plugin-emitters": "3.1.0",
"@tsparticles/plugin-emitters-shape-circle": "3.1.0",
"@tsparticles/plugin-emitters-shape-square": "3.1.0",
"@tsparticles/plugin-easing-quad": "3.1.0",
"@tsparticles/shape-circle": "3.1.0",
"@tsparticles/shape-emoji": "3.1.0",
"@tsparticles/shape-image": "3.1.0",
"@tsparticles/shape-line": "3.1.0",
"@tsparticles/shape-polygon": "3.1.0",
"@tsparticles/shape-square": "3.1.0",
"@tsparticles/shape-star": "3.1.0",
"@tsparticles/shape-text": "3.1.0",
"@tsparticles/slim": "3.1.0",
"@tsparticles/updater-color": "3.1.0",
"@tsparticles/updater-destroy": "3.1.0",
"@tsparticles/updater-life": "3.1.0",
"@tsparticles/updater-opacity": "3.1.0",
"@tsparticles/updater-out-modes": "3.1.0",
"@tsparticles/updater-roll": "3.1.0",
"@tsparticles/updater-rotate": "3.1.0",
"@tsparticles/updater-size": "3.1.0",
"@tsparticles/updater-stroke-color": "3.1.0",
"@tsparticles/updater-tilt": "3.1.0",
"@tsparticles/updater-twinkle": "3.1.0",
"@tsparticles/updater-wobble": "3.1.0",
"string-width": "4.2.3"
} And yet not working, maybe I'm missing some package,
|
The same issue occurs with Angular as well. |
|
The core is the same for every component library |
Ok now it's working, Simply add it to package.json and run Important Remember to keep "resolutions": {
"tsparticles": "3.1.0",
"@tsparticles/basic": "3.1.0",
"@tsparticles/engine": "3.1.0",
"@tsparticles/interaction-external-attract": "3.1.0",
"@tsparticles/interaction-external-bounce": "3.1.0",
"@tsparticles/interaction-external-bubble": "3.1.0",
"@tsparticles/interaction-external-connect": "3.1.0",
"@tsparticles/interaction-external-grab": "3.1.0",
"@tsparticles/interaction-external-pause": "3.1.0",
"@tsparticles/interaction-external-push": "3.1.0",
"@tsparticles/interaction-external-remove": "3.1.0",
"@tsparticles/interaction-external-repulse": "3.1.0",
"@tsparticles/interaction-external-slow": "3.1.0",
"@tsparticles/interaction-external-trail": "3.1.0",
"@tsparticles/interaction-particles-attract": "3.1.0",
"@tsparticles/interaction-particles-collisions": "3.1.0",
"@tsparticles/interaction-particles-links": "3.1.0",
"@tsparticles/move-base": "3.1.0",
"@tsparticles/move-parallax": "3.1.0",
"@tsparticles/plugin-absorbers": "3.1.0",
"@tsparticles/plugin-emitters": "3.1.0",
"@tsparticles/plugin-emitters-shape-circle": "3.1.0",
"@tsparticles/plugin-emitters-shape-square": "3.1.0",
"@tsparticles/plugin-easing-quad": "3.1.0",
"@tsparticles/shape-circle": "3.1.0",
"@tsparticles/shape-emoji": "3.1.0",
"@tsparticles/shape-image": "3.1.0",
"@tsparticles/shape-line": "3.1.0",
"@tsparticles/shape-polygon": "3.1.0",
"@tsparticles/shape-square": "3.1.0",
"@tsparticles/shape-star": "3.1.0",
"@tsparticles/shape-text": "3.1.0",
"@tsparticles/slim": "3.1.0",
"@tsparticles/updater-color": "3.1.0",
"@tsparticles/updater-destroy": "3.1.0",
"@tsparticles/updater-life": "3.1.0",
"@tsparticles/updater-opacity": "3.1.0",
"@tsparticles/updater-out-modes": "3.1.0",
"@tsparticles/updater-roll": "3.1.0",
"@tsparticles/updater-rotate": "3.1.0",
"@tsparticles/updater-size": "3.1.0",
"@tsparticles/updater-stroke-color": "3.1.0",
"@tsparticles/updater-tilt": "3.1.0",
"@tsparticles/updater-twinkle": "3.1.0",
"@tsparticles/updater-wobble": "3.1.0",
"string-width": "4.2.3"
} |
Did you have to individually install it one by one? What was the method you used? |
Simply add it to package.json and run |
After adding the dependency, but the page reported an error, the reason is |
upgrade to 3.2.2 seem to fix the error (no error displayed) but nothing is displayed |
Thanks for this. It workes for me. |
Issue fixed after release of tsparticles 3.3.0, thank you |
Greetings,
I tried to utilize the tsparticles library in my Vue 3 project using Vite.
Unfortunately, after following instructions provided in this repository the app does not load anymore.
In the console I found the following error:
Vector.js
points to this file in the repository.The issue occured in both Firefox and Chromium.
Is there anything I could do to resolve this issue?
The text was updated successfully, but these errors were encountered: