typescript error : es2015


Due to npm library called "@types/es6-shim" i have massive error and wasted 3 hours trying to figure out what went wrong. Luckily all the same error number and end with pretty much the same text - "must have identifical modifier".

Remove @types/es6-shim from your package.json and the folder in "node_modules/@types/es6-shim". Run tsc again Solved.


You might get these errors :-

 error TS2687: All declarations of 'size' must have identical modifiers.

error TS2687: All declarations of 'MIN_SAFE_INTEGER' must have identical modifiers.

error TS2687: All declarations of 'prototype' must have identical modifiers.

error TS2687: All declarations of 'EPSILON' must have identical modifiers.

Comments

Popular posts from this blog

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