Closed ekeren closed 7 months ago
@Chriscbr in version 0.0.3 the ts
issue is resolved, but I still have a problem:
An error has occurred:
Failed to compile.
error: Symbol "Cognito" has multiple definitions in "/private/tmp/demo-simtools/node_modules/@winglibs/cognito/platform"
--> main.w:2:1
|
2 | bring cognito;
| ^^^^^^^^^^^^^^ Symbol "Cognito" has multiple definitions in "/private/tmp/demo-simtools/node_modules/@winglibs/cognito/platform"
error: Unknown symbol "cognito"
--> main.w:12:16
|
12 | let auth = new cognito.Cognito(api);
| ^^^^^^^ Unknown symbol "cognito"
Oof... yeah the compiler should be catching these errors before we publish the library. I'll try to fix and open a bug for the compiler (also need one for the ts issue)
What is the root cause for this?
Oh, I see
@eladcon has 2 pub class under the same directory with name Cognito
Fixed in cognito 0.0.4
I've opened this issue for the symbol conflict error (compiler bug) https://github.com/winglang/wing/issues/6087
I tried this:
This happened:
I expected this:
to work
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