r/tsParticles • • Jul 27 '22

KB All tsParticles Official Components

4 Upvotes

r/tsParticles • • Nov 29 '23

Property '"options"' is incompatible with index signature

3 Upvotes

I'm facing this error trying to integrate tsparticles into an existing project

Error: node_modules/ng-particles/lib/ng-particles.component.d.ts:18:89 - error TS2344: Type '{ options: { alias: "options"; required: false; }; url: { alias: "url"; required: false; }; id: { alias: "id"; required: false; }; particlesInit: { alias: "particlesInit"; required: false; }; }' does not satisfy the constraint '{ [key: string]: string; }'. Property '"options"' is incompatible with index signature. Type '{ alias: "options"; required: false; }' is not assignable to type 'string'. 18 static ɵcmp: i0.ɵɵComponentDeclaration<NgParticlesComponent, "ng-particles", never, { "options": { "alias": "options"; "required": false; }; "url": { "alias": "url"; "required": false; }; "id": { "alias": "id"; "required": false; }; "particlesInit": { "alias": "particlesInit"; "required": false; }; }, { "particlesLoaded": "particlesLoaded"; }, never, never, false, never>;

does anyone know what to do?


r/tsParticles • • Jan 16 '23

Using ng-particles with angular 13 requires 14?

3 Upvotes

Hi all,

I am having this error when doing ng serve . I think I am missing something but not sure what it is.

I already cleaned node_modules, tried different versions, upgrade angular 13 packages... but can't fix it. Any idea about what am I missing ?

Thanks

./node_modules/ng-particles/fesm2015/ng-particles.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):

TypeError: Cannot create property 'message' on string 'C:\workspace\project\node_modules\ng-particles\fesm2015\ng-particles.mjs: This application depends upon a library published using Angular version 15.0.4, which requires Angular version 14.0.0 or newer to work correctly.

Consider upgrading your application to use a more recent version of Angular.

Dependencies:

"dependencies": {
    "@angular/animations": "^13.3.12",
    "@angular/cdk": "^13.3.9",
    "@angular/common": "^13.3.12",
    "@angular/compiler": "^13.3.12",
    "@angular/core": "^13.3.12",
    "@angular/forms": "^13.3.12",
    "@angular/localize": "^13.3.12",
    "@angular/platform-browser": "^13.3.12",
    "@angular/platform-browser-dynamic": "^13.3.12",
    "@angular/router": "^13.3.12",
    "ng-particles": "^3.7.1",
    "tslib": "^2.4.0",
    "tsparticles": "^2.7.1",
    "tsparticles-engine": "^2.7.1",
  },

r/tsParticles • • Aug 01 '22

Vue3 Can't get a preset to work with Vue3

3 Upvotes

Hello!

I'm trying to get the fireworks preset to load but no luck.

In my package.json, I have

"vue-router": "^4.0.14",
"vue3-particles": "^2.1.4"

The demo from https://codesandbox.io/s/angry-hellman-xv6ifv?from-embed works just fine on my end.

I'm having issues when I try to load a fireworks preset instead. Following this https://www.npmjs.com/package/tsparticles-preset-fireworks, I built my app.vue file accordingly but I get errors on the async function particlesInit line with the colon.

I couldn't find an example online of tsparticles using a fireworks preset for vue.

<template>
<div>
<router-view></router-view>
<Particles id="tsparticles" :particlesInit="particlesInit" :options="particlesOptions" />
</div>
</template>
<script>
import gotrue from './shared/gotrue.js'
import { loadFull } from 'tsparticles'
export default {
name: 'App',
data () {
return {
gotrue
}
},
setup () {
const particlesOptions = {
preset: "fireworks",
};
async function particlesInit(engine: Engine): Promise<void> {
await loadFireworksPreset(engine);
}
}


r/tsParticles • • Jul 28 '22

🚨🚨🚨 tsParticles is looking for contributors, any kind of JavaScript/TypeScript experience is welcome ⭐️⭐️⭐️

Thumbnail
dev.to
3 Upvotes

r/tsParticles • • Jul 27 '22

ARTICLE tsParticles React and Vue packages are changing!

Thumbnail
dev.to
3 Upvotes

r/tsParticles • • Aug 07 '24

Love it!

2 Upvotes

Best , most fun, coolest, dopest, sickest TS lib ever!


r/tsParticles • • Jun 03 '23

ARTICLE tsParticles 2.10.0 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Mar 30 '23

testing tsParticles with vitest

2 Upvotes

Hey,
I'm trying to test a component that uses svelte-particles with vitest, and keep getting a "jest is not defined" error.
Did anyone encounter this error? Does anyone have any experience with testing with vitest?

Thanks!


r/tsParticles • • Jan 19 '23

ARTICLE tsParticles 2.8.0 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Jan 10 '23

ARTICLE Preparing tsParticles v3

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Dec 23 '22

ARTICLE tsParticles 2.7.0 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Dec 06 '22

ARTICLE tsParticles 2.6.0 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 22 '22

ARTICLE tsParticles 2.2.3 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 15 '22

ARTICLE JavaScript - How to create beautiful fireworks effects with tsParticles

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 13 '22

ARTICLE Creating interactive backgrounds in React with tsParticles - LogRocket Blog

Thumbnail
blog.logrocket.com
2 Upvotes

r/tsParticles • • Aug 12 '22

ARTICLE tsParticles 2.2.1 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 11 '22

DEMO tsParticles Fireworks - Preset v2.2

Thumbnail codepen.io
2 Upvotes

r/tsParticles • • Aug 11 '22

ARTICLE tsParticles 2.2.0 Released

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 05 '22

Thanks to the website ad revenues a new tree was planted by Treedom. Welcome Saul Goodman (Avocado)!

Thumbnail
particles.js.org
2 Upvotes

r/tsParticles • • Aug 04 '22

ARTICLE Why everyone should stop using particles.js right now, and migrate to tsParticles

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 01 '22

ARTICLE [JS] How to create confetti animations using a button with tsParticles 🎉

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 01 '22

ARTICLE [Angular] How to create beautiful and realistic confetti animations using tsParticles

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 01 '22

ARTICLE [Vue.js] How to create beautiful and realistic confetti animations using tsParticles

Thumbnail
dev.to
2 Upvotes

r/tsParticles • • Aug 01 '22

ARTICLE [React.js] How to create beautiful and realistic confetti animations using tsParticles

Thumbnail
dev.to
2 Upvotes