You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Failed to compile.
ERROR: There is already a Construct with name '$Closure1' in JsonApi [JsonApi]
hint: Every preflight object needs a unique identifier within its scope. You can assign one as shown:
> new cloud.Bucket() as "MyBucket";
For more information, see https://www.winglang.io/docs/concepts/resources
Users/cristian/Code/wing.cloud/apps/@wingcloud/infrastructure/target/api.repro.main.wsim.208908.tmp/.wing/preflight.js:19
class $Closure1 extends $stdlib.std.Resource {
constructor(scope, id, ) {
>> super(scope, id);
(std.Node.of(this)).hidden = true;
}
I expected this:
Either, the URL should work or it shouldn't refer to it.
Is there a workaround?
No response
Component
SDK
Wing Version
0.35.5
Node.js Version
No response
Platform(s)
No response
Anything else?
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.
The text was updated successfully, but these errors were encountered:
I tried this:
The actual code isn't important, but here's a way to trigger the error:
This happened:
Got this error (note the https://www.winglang.io/docs/concepts/resources URL):
I expected this:
Either, the URL should work or it shouldn't refer to it.
Is there a workaround?
No response
Component
SDK
Wing Version
0.35.5
Node.js Version
No response
Platform(s)
No response
Anything else?
No response
Community Notes
The text was updated successfully, but these errors were encountered: