-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
TS Error when run generation #574
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@Souvikns I think you have access to windows, can you help with this issue 🙏 |
OK, I am getting the same error on Mac as well. |
The command is running on the codebase without any issue, but in production, it is not working, I checked and all other commands are working, might be something wrong with the generator. Not a fix but you can run the command by passing |
generator do not support |
@Tenischev can you install typescript globally and try to run the command, it worked for me.
Yeah, the generator is written in javascript, it is a typescript issue. |
does it mean that |
typescript is just a compiler right we should not need it in production, no idea why this is happening. https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html looking at this typescript could be used as a dependency |
interesting @Tenischev can you confirm if after |
|
@Tenischev can you give it another try with latest 🙏 |
@derberg the problem still there |
@Tenischev did you install the CLI using npm? |
@Souvikns I don't think it matters. I had the same issue 2 days ago and did not have time to open a PR, but my idea for the fix was pretty dummy, removal of |
Oh ok, I will then open a PR updating the package-lock. I was thinking that maybe packaging it into different installers creates a problem. |
@Tenischev |
@derberg I have a small update here.
|
This issue has been automatically marked as stale because it has not had recent activity 😴 It will be closed in 120 days if no further activity occurs. To unstale this issue, add a comment with a detailed explanation. There can be many reasons why some specific issue has no activity. The most probable cause is lack of time, not lack of interest. AsyncAPI Initiative is a Linux Foundation project not owned by a single for-profit company. It is a community-driven initiative ruled under open governance model. Let us figure out together how to push this issue forward. Connect with us through one of many communication channels we established here. Thank you for your patience ❤️ |
@Tenischev are you still experiencing this issue? |
Describe the bug
TypeScript error when run generation from template/
How to Reproduce
asyncapi generate fromTemplate tests/mocks/mqtt.yml @asyncapi/java-spring-template -o spring-output-test
Additional details:
OS - Windows 11
Expected behavior
No error when run generation from template
The text was updated successfully, but these errors were encountered: