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
error: Cannot add two files with the same name: ./inflight.Util.js
I expected this:
It compiles
Is there a workaround?
Give the classes different names
Component
Compiler
Wing Version
0.24.47
Node.js Version
No response
Platform(s)
MacOS
Anything else?
The JSifier needs to emit inflight clients in a way so that classes with the same name still get different generated names. For example, the file stem could be used to distinguish the names like inflight.foo-Util.js and inflight.bar-Util.js, or an incrementing number could be used.
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:
Fixes#3640
This change affects a lot of files, so I've implemented the changes and updated examples in the first commit, and all snapshot updates in the second commit.
## Checklist
- [x] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [x] Description explains motivation and solution
- [x] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing
*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
I tried this:
This happened:
error: Cannot add two files with the same name: ./inflight.Util.js
I expected this:
It compiles
Is there a workaround?
Give the classes different names
Component
Compiler
Wing Version
0.24.47
Node.js Version
No response
Platform(s)
MacOS
Anything else?
The JSifier needs to emit inflight clients in a way so that classes with the same name still get different generated names. For example, the file stem could be used to distinguish the names like
inflight.foo-Util.js
andinflight.bar-Util.js
, or an incrementing number could be used.Community Notes
The text was updated successfully, but these errors were encountered: