Closed demiters closed 4 years ago
Tried to use this as per docs in a TS project with create-react-app but got:
/home/***/node_modules/tsparticles/dist/Core/Canvas.d.ts TypeScript error in /home/***/node_modules/tsparticles/dist/Core/Canvas.d.ts(1,13): '=' expected. TS1005 > 1 | import type { Container } from "./Container"; | ^ 2 | import type { IDimension } from "./Interfaces/IDimension"; 3 | import type { IRgb } from "./Interfaces/IRgb"; 4 | import type { ICoordinates } from "./Interfaces/ICoordinates";```
Hi @demiters,
Which version of TypeScript are you using? TypeScript 3.8 is the minimum version required
CRA provides TS 3.7.2. Upgrading fixed this! Thanks.
Tried to use this as per docs in a TS project with create-react-app but got: