Issue
I created a new Angular project, like I did many times before. I tried to run it immediately before making any changes but got this error:
.../node_modules/@types/node/ts4.8/crypto.d.ts:4477:13 - error TS2403: Subsequent variable declarations must have the same type. Variable 'crypto' must be of type 'Crypto', but here has type 'Crypto'.
My angular cli version is 14.2.3 and my node is 21.4.0. I did not alter any of the code, just typed the following:
ng new myApp
cd myApp
ng serve
It seems like the varable crypto
is declared twice, but I have no clue how to solve this.
Solution
comment the below line in file: crypto.d.ts
// var crypto: webcrypto.Crypto;
Answered By - Sri Vallapu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.