Forum Discussion

luojiandan_bi's avatar
5 years ago
Solved

why TS1005: ';' expected.||TS1005: '=' expected ?

I got an error by using tsParticles,but the first time is ok,and reopen got these error: this is issue in github and the project code is:  https://github.com/luojiandan/webParticles 
  • luojiandan_bi's avatar
    5 years ago

    it's ok:

    import { particlesJS } from "tsparticles"; 
    change to: 
    import { particlesJS } from "../node_modules/tsparticles/dist/tsparticles.js";