[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'emailIdentities') #6626

Open
eladcon opened this issue Jun 3, 2024 · 0 comments
Open

Cannot read properties of undefined (reading 'emailIdentities') #6626

eladcon opened this issue Jun 3, 2024 · 0 comments
Labels
🐛 bug Something isn't working 🛠️ compiler Compiler

Comments

@eladcon
Copy link
Collaborator
eladcon commented Jun 3, 2024

I tried this:

6626.mov
bring cloud;
bring http;
bring ses;

pub class Email {
  new() {
    let sesClient = new ses.EmailService();
    new cloud.Function(inflight () => {
      let res = http.post("");
    });
  }
}

new Email();

BTW, surprisingly enough THIS WOKRS: (Notice I've commented out http.post("");)

bring cloud;
bring http;
bring ses;

pub class Email {
  new() {
    let sesClient = new ses.EmailService();
    new cloud.Function(inflight () => {
     // let res = http.post("");
    });
  }
}

new Email();

This happened:

Failed to compile.

Error: Cannot read properties of undefined (reading 'emailIdentities')
at new EmailService_tfaws /private/tmp/a4/node_modules/@winglibs/ses/tfaws.w:7:30

I expected this:

To compile.

Is there a workaround?

No response

Anything else?

No response

Wing Version

No response

Node.js Version

No response

Platform(s)

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
@eladcon eladcon added the 🐛 bug Something isn't working label Jun 3, 2024
@Chriscbr Chriscbr added this to the Winglang Stable Release milestone Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 🛠️ compiler Compiler
Projects
Status: 🤝 Backlog - handoff to owners
Development

No branches or pull requests

3 participants