Since today, we have encountered problems deploying our project. In the drone logs during the build step, the following error is appearing:
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'.
Line 4477: var crypto: webcrypto.Crypto; ~~~~~~ node_modules/typescript/lib/lib.dom.d.ts:18084:13
18084 declare var crypto: Crypto;
~~~~~~
'crypto' was also declared here.
Below are the dependencies for this project:
"dependencies": {
"@angular/animations": "^14.1.0",
"@angular/cdk": "^14.2.2",
... (dependencies list continues) ...
},
"devDependencies": {
"@angular-devkit/build-angular": "^14.1.3",
"@angular-devkit/core": "^14.2.6",
... (devDependencies list continues) ...
}
We've noticed that this issue has been reported on GitHub: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/68379, however installing the @types/[email protected] does not resolve the issue...
Drone configuration for the build:
commands:
- npm install
- npm run build-stage
Any suggestions on how to resolve this issue given that it does not occur when building the project locally..?
Thank you!