-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Renders empty HTML #989
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. |
Ok so it seems this is related to the 1.0.0 release of template-html: If using The |
same here, had an empty output after validating the yaml with the online studio tool specifying template version fixes the problem, the following command produces a working single html:
for debug purposes, this is my output from asyncapi --version
|
Lets close this issue and continue in asyncapi/html-template#456 as this has nothing to do with the spec :) |
Let's continue in asyncapi/html-template#456 |
Describe the bug
I installed AsyncAPI today to render some HTML from my spec, and have run into nothing but problems.
At first I tried using
npx
to invoke it:$ npx asyncapi generate fromTemplate api/asyncapi.yml @asyncapi/html-template -o ./out
This returns without any errors, but nothing happens. Nothing at all.
I then, reluctantly, installed asyncapi globally using
npm i -g
and gave it another try.$ asyncapi generate fromTemplate api/asyncapi.yml @asyncapi/html-template -o ./out
This processes my spec for a while, then announces that my HTML is found at ./out. And yes, there's an
index.html
and some js, but the rendered HTML is completely blank. An empty, white page.So I went to the only AsyncAPI studio and validated my spec, and yes, it's valid - and HTML is rendered properly in the sidebar.
Obviously I'm doing something wrong, but in that case documentation is clearly not sufficient. I followed the instructions to install and render HTML from a very simple spec, and the output is void.
I also tried your own hello example with same results.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The rendered HTML should not be, ehrm, empty.
Sample document
The text was updated successfully, but these errors were encountered: