sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.19k stars 148 forks source link

Cannot find module '@aws-sdk/middleware-retry/node_modules/@smithy/util-retry/dist-cjs/index.js #260

Open danielbush opened 3 months ago

danielbush commented 3 months ago

I'm getting this error:

sst remove --stage dev
...
...
...
|  Deleted     WorkbenchUI sst:aws:Nextjs → WorkbenchUIRevalidationQueue sst:aws:Queue
Error: Cannot find module '@aws-sdk/middleware-retry/node_modules/@smithy/util-retry/dist-cjs/index.js'
Require stack:
- 
- /builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js: Error: Cannot find module '@aws-sdk/middleware-retry/node_modules/@smithy/util-retry/dist-cjs/index.js'
Require stack:
- 
- /builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1143:15)
    at Module._load (node:internal/modules/cjs/loader:984:27)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (<anonymous>:61:22)
    at Module._compile (node:internal/modules/cjs/loader:1369:14)
    at requireFromString (/builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/require-from-string/index.js:28:4)
    at getProvider (/builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js:70:20)
    at Object.<anonymous> (/builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js:280:36)
    at Generator.next (<anonymous>)
|  Error       WorkbenchUI sst:aws:Nextjs → WorkbenchUIOriginAccessIdentity sst:aws:OriginAccessIdentity Cannot find module '@aws-sdk/middleware-retry/node_modules/@smithy/util-retry/dist-cjs/index.js'
Require stack:
- 
- /builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js
|  Deleted     WorkbenchUI sst:aws:Nextjs → WorkbenchUIRevalidationSeeder sst:aws:Function
|  Deleted     WorkbenchUI sst:aws:Nextjs → WorkbenchUIAssets sst:aws:Bucket
|  Deleted     WorkbenchUI sst:aws:Nextjs → WorkbenchUIOpenNextOutput sst:aws:Cache
×  Failed
   WorkbenchUI sst:aws:Nextjs → WorkbenchUIOriginAccessIdentity sst:aws:OriginAccessIdentity
   Cannot find module '@aws-sdk/middleware-retry/node_modules/@smithy/util-retry/dist-cjs/index.js'
Require stack:
- 
- /builds/syphen/frontend/workbench-ui/.sst/platform/node_modules/@pulumi/pulumi/cmd/dynamic-provider/index.js
danielbush commented 3 months ago

One workaround that seemed to work was to do npm i @aws-sdk/middleware-retry in my project.

james-albanese commented 1 month ago

In my case, I needed to install @smithy/middleware-retry