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

sst-env.d.ts invalid for bound workers #4463

Open
atjeff opened this issue Jul 4, 2024 · 1 comment
Open

sst-env.d.ts invalid for bound workers #4463

atjeff opened this issue Jul 4, 2024 · 1 comment
Assignees

Comments

@atjeff
Copy link

atjeff commented Jul 4, 2024

I am on version 0.0.481

With this config:

{
  const bucket = new sst.cloudflare.Bucket("MyBucket");

  const workerB = new sst.cloudflare.Worker("WorkerB", {
    handler: "./src/worker-b.ts",
    link: [bucket],
    url: true,
  });

  const workerA = new sst.cloudflare.Worker("WorkerA", {
    handler: "./src/worker-a.ts",
    link: [workerB, bucket],
    url: true,
  });

  return {
    url: workerA.url,
  };
}

The generated types clash, with a TS error
image

Please let me know if any other information would be helpful 👍

@atjeff
Copy link
Author

atjeff commented Aug 21, 2024

If helpful: still exists on sst 3.0.54

@thdxr thdxr transferred this issue from sst/ion Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants