dockerbitbucketnode-modulesnpm-packagenpm-build

@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.

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


Solution

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

    npm install --save-dev typescript@latest