sst / ion

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

components_exports.aws.ApiGatewayWebSocket is not a constructor #372

Closed tyrong closed 2 months ago

tyrong commented 2 months ago

When trying to add ApiGatewayWebSocket, we receive error:

|  Error
|  TypeError: components_exports.aws.ApiGatewayWebSocket is not a constructor
|      at run (file:///Users/app/sst.config.ts:26:17)
|      at run (file:///Users/app/.sst/platform/src/auto/run.ts:39:26)
|      at file:///Users/app/.sst/platform/eval.ts:6:28
|      at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
|      at ModuleLoader.import (node:internal/modules/esm/loader:316:24)
|      at importModuleDynamicallyWrapper (node:internal/vm/module:431:15)
|  Info        Downloading provider: aws

Config: const api = new sst.aws.ApiGatewayWebSocket("APISocket");

Tried removing .sst folder and reinstalling dependencies

amir-ziaei commented 2 months ago

~~@tyrong, Hello, I'm facing the same issue. I wonder if you solved it?~~


Found out my CLI was outdated. It was released just recently.