npm unable to start - getting TS2304 error



One fine day, i tried to start my project with npm start and bump into this error :-

node_modules/@angular/common/src/directives/ng_class.d.ts(46,34): error TS2304: Cannot find name 'Set'.

Yes it is a typing error and just issue the following command to fix it.

npm install --save-dev @types/core-js


Try npm start again.

Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm