Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@types/express-serve-static-core/index.d.ts causing build errors

Started encountering this issue after pushing changes which has nothing to do with the node_modules or the deployment pipeline. This issue is also seen when trying to rerun an already successful deployment in bitbucket.

enter image description here

I even tried updating the some of the packages to the latest version, but it still throws the same error.

But locally in my pc I have no issue with npm run build.

When the bitbucket pipeline is run.

  • The docker first installs node_modules using the npm install cmd.

  • After this while running npm run build the pipeline is failing with the error shown in the image above.

So I suspect it is the packages in the node_modules that are newly getting downloaded, because locally I have no problem with the build cmd.

Could anyone help me out, whether it is the incompatibility between the npm packages or the pipeline itself, Or if there might be any other error.

Thank you

like image 723
LST Avatar asked Jun 20 '26 14:06

LST


1 Answers

Thanks to @Nitheesram Rajes I was able to fix this issue by updating typescript package using the command

npm install --save-dev typescript@latest
like image 121
Ido Ran Avatar answered Jun 23 '26 04:06

Ido Ran



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!