examples
examples copied to clipboard
Fix typescript compilation errors in gcp-ts-functions
What happened?
Was getting typescript compilation errors relating to send not being on the Response object
Steps to reproduce
Follow readme to setup: gcp-ts-functions project
Expected Behavior
For the function to be deployed
Actual Behavior
Running: pulumi up
gives typescript compilation errors
Output of pulumi about
No response
Additional context
Making these changes to packag.json seems to fix the problem.
--- a/gcp-ts-functions/package.json
+++ b/gcp-ts-functions/package.json
@@ -2,11 +2,13 @@
"name": "gcp-ts-functions",
"version": "2.0.0",
"devDependencies": {
- "@types/express": "^4.16.0",
- "@types/node": "^12.0.0"
+ "@types/express": "^4.17.2",
+ "@types/express-serve-static-core": "^4.17.30",
+ "@types/node": "^18.8.0"
},
"dependencies": {
- "@pulumi/gcp": "^5.0.0",
- "@pulumi/pulumi": "^3.0.0"
+ "@pulumi/gcp": "^6.39.0",
+ "@pulumi/pulumi": "^3.40.2",
+ "typescript": "^4.1.6"
}
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).