Currently experiencing problems when deploying to an environment:
⋊> ~/w/photag-functions on qa ⨯ 8base migration commit -e main 14:36:16
The new version of the 8base CLI (v0.0.105) is already available.
Please update CLI to the latest version using 'yarn global add 8base-cli@latest' or 'npm i -g 8base-cli@latest'
error: Deployment error.
Compilation failed:
Error: node_modules/@aws-sdk/client-s3/types/S3Client.d.ts (191,62): Cannot find name 'Blob'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_0.d.ts (5436,23): Cannot find name 'ReadableStream'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_0.d.ts (5436,40): Cannot find name 'Blob'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_0.d.ts (5984,23): Cannot find name 'ReadableStream'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_0.d.ts (5984,40): Cannot find name 'Blob'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_0.d.ts (8106,23): Cannot find name 'ReadableStream'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_0.d.ts (8106,40): Cannot find name 'Blob'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_1.d.ts (727,23): Cannot find name 'ReadableStream'.
Error: node_modules/@aws-sdk/client-s3/types/models/models_1.d.ts (727,40): Cannot find name 'Blob'.
error: Time: 65,367 ms.
⋊> ~/w/photag-functions on qa ⨯
We have had this problem in the past and sometimes it reappears. Deleting the node_modules/ folder and the package-lock.json sometimes works to fix the problem, but in this case, we are stuck.
Alternative Solutions:
- On this thread on Github: https://github.com/microsoft/TypeScript/issues/14897 they suggest including
DOM
as a parameter on the compilation to avoid errors for types from nodejs - We have also included the package @types/node but still no luck on this problem.
- Also it suggests to include a type stub to go around this error