Open tobz1000 opened 1 year ago
Might be esm or cjs related. Start a thread in #help on Discord?
Thanks - I'm happy with the workaround for now. Just thought I should submit a bug report in case the fix is obvious/it's helpful to someone else.
@tobz1000 just encountered this, workaround is working.
@jayair So, I cannot log into discord on my work computer, I don't want to connect my work computer (managed by corporate) to my personal discord, but discord seems to only want me to sign up with a phone number not my work email. You can only use one phone number with one account, and the personal discord is already using it.
An open searchable forum that is not gated would be nice.
I guess I can browse on my personal phone... a bit awkward.
An open searchable forum that is not gated would be nice.
Off-topic but I agree. It's strange for bug discussion to not be public/preserved within in issues directly. I kinda get it for personalised help, but some things are real bugs/feature requests.
Yeah it's just hard for us to have conversations spread out everywhere. We just found that people don't respond in time for a lot of issues. So they just fall through the cracks. On Discord we can jump on issues right away and fix them.
I'm experiencing a similar issue:
Build failed packages/functions/src/validateUser.handler
Could not resolve "mock-aws-s3"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js
43 │ const AWSMock = require('mock-aws-s3');
Could not resolve "nock"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js
112 │ const nock = require('nock');
Could not resolve "@aws-sdk/client-dynamodb"
packages/functions/src/validateUser.js
4 │ import { DynamoDBClient } from '@aws-sdk/client-dynamodb';
Could not resolve "@aws-sdk/lib-dynamodb"
packages/functions/src/validateUser.js
5 │ import { DynamoDBDocumentClient, GetCommand } from '@aws-sdk/lib-dynamodb';
This seems different, please post on Discord.
The original error noted above seems to relate to same error discussed here on Discord - https://discord.com/channels/983865673656705025/1116777988600631457/1116777988600631457
It's difficult to find a minimum reproduction of this one.
When I include certain Config resource definitions in my infra code, the following error occurs, after building, when invoking a function via the console:
Workaround: Install
proxy-agent
as a devDependency of the affected infra project. I can see it's a devDependency ofsst-aws-cdk
, so maybe it should be a regular dependency instead. I haven't digged into that relationship much though.Some more detail on how my infra code reproduced the bug below.
I'm attempting to create a stack specifically for config variables, which are then consumed by multiple other stacks, e.g.:
Importing a module with this code within my infra is enough to trigger the bug - I don't even have to include
ConfigStack
in my sst config nor import it inFunctionStack
.Stranger still, when there's no
ConfigStack
in my code and I include theConfig.Secret
definition directlyFunctionStack
, it works as expected. So maybe it's related to defining secrets and not binding them to anything within a stack...? Pure speculation though.