sst / ion

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

`Error: Failed to build function: Could not resolve "sst/node/config"` #474

Closed betcashbacks closed 6 days ago

betcashbacks commented 1 month ago

I started getting the following error while running sst deploy --stage production:

Error        Error: Failed to build function: Could not resolve "sst/node/config"
|  at file:///***/.sst/platform/src/components/aws/function.ts:1134:21
|  at processTicksAndRejections (node:internal/process/task_queues:95:5) {
|  promise: Promise { <rejected> [Circular *1] }

May be related, but I see this error 3x, and I have 3x functions in my code (1 queue handler, 1 cron handler, and 1 API handler). I'm using aws provider. Running sst dev --stage local works fine.

jayair commented 1 month ago

It looks like you are referencing SST2 SDK in your functions. Check your SST imports?

betcashbacks commented 6 days ago

This seems to have solved itself. I will close this for now and re-open if it surfaces in the future.