tsparticles / angular

Angular tsParticles official component
MIT License
32 stars 6 forks source link

Bug: ng-partciles.component.d.ts #46

Closed Webrow closed 1 year ago

Webrow commented 1 year ago

[ng] Property '"options"' is incompatible with index signature. [ng] Type '{ alias: "options"; required: false; }' is not assignable to type 'string'.

Version 2.10.1 (3.10.1 ng-articles).

When doing a clean install, there is a typescript error: image

matteobruni commented 1 year ago

Please share some code to replicate the bug

CHULMING commented 1 year ago

I'm facing the same issue.

Please share some code to replicate the bug

<ng-particles
  [id]="id"
  [options]="particlesOptions"
  [particlesInit]="particlesInit"
  (particlesLoaded)="particlesLoaded($event)"
></ng-particles>

This is a sample code posted on README. And All of my codes are same with sample codes. but error occur. My version : Angular 15 and ng-particles 3.11.0

+) In version 3.9.3, everything is great.

matteobruni commented 1 year ago

3.11.0 is built with Angular 16 as can be seen here: https://github.com/tsparticles/angular/blob/6ecc7f4b17a30f4930dbedf4715aa329c9fe9139/components/particles/package.json#L81