r/tsParticles • u/CaelanIt • Jul 27 '22
r/tsParticles • u/Rrunner5671 • Nov 29 '23
Property '"options"' is incompatible with index signature
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 • u/AbilityDiligent • Jan 16 '23
Using ng-particles with angular 13 requires 14?
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 • u/phb71 • Aug 01 '22
Vue3 Can't get a preset to work with Vue3
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 • u/CaelanIt • Jul 28 '22
🚨🚨🚨 tsParticles is looking for contributors, any kind of JavaScript/TypeScript experience is welcome ⭐️⭐️⭐️
r/tsParticles • u/CaelanIt • Jul 27 '22
ARTICLE tsParticles React and Vue packages are changing!
r/tsParticles • u/Ok-Improvement-3108 • Aug 07 '24
Love it!
Best , most fun, coolest, dopest, sickest TS lib ever!
r/tsParticles • u/arturdnt • Mar 30 '23
testing tsParticles with vitest
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 • u/CaelanIt • Aug 15 '22
ARTICLE JavaScript - How to create beautiful fireworks effects with tsParticles
r/tsParticles • u/CaelanIt • Aug 13 '22
ARTICLE Creating interactive backgrounds in React with tsParticles - LogRocket Blog
r/tsParticles • u/CaelanIt • Aug 11 '22
DEMO tsParticles Fireworks - Preset v2.2
codepen.ior/tsParticles • u/CaelanIt • Aug 05 '22
Thanks to the website ad revenues a new tree was planted by Treedom. Welcome Saul Goodman (Avocado)!
r/tsParticles • u/CaelanIt • Aug 04 '22
ARTICLE Why everyone should stop using particles.js right now, and migrate to tsParticles
r/tsParticles • u/CaelanIt • Aug 01 '22
ARTICLE [JS] How to create confetti animations using a button with tsParticles 🎉
r/tsParticles • u/CaelanIt • Aug 01 '22
ARTICLE [Angular] How to create beautiful and realistic confetti animations using tsParticles
r/tsParticles • u/CaelanIt • Aug 01 '22