Gulp Build gives error While Type cast mentioned for any variable

I guess that you’re trying to use types in a JavaScript project. Types and class properties are valid only in TypeScript projects. For more details check out the following post:

1 Like