-
-
Notifications
You must be signed in to change notification settings - Fork 60
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
Unable to generate : prevRenderer issue #214
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. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue. |
@sl-nigelalmada Hi! It's probably due to fact that one PR in the repo https://github.com/asyncapi/asyncapi-react in the I will check that and I will give you the answer as soon as possible. In meantime, could you write your NodeJS version? I know that writing We changed the way of rendering the JSON examples (only styling) and I have it, so I use the newest version of template |
@sl-nigelalmada As I thought, from this PR (merged 13 hours ago) people in markedJS started using the optional chaining, so please update your NodeJS at least to 14 version :) You can use the https://www.npmjs.com/package/n package to have several versions if you need. Please write if you need something more! :) |
@magicmatatjahu I'm using NodeJS v12.22.1 |
I have no issue with upgrading and it indeed works Feel free to close the bug if needed |
This is a transitive bug received from markedjs/marked#2106. Time to downgrade the dependency? |
@sl-nigelalmada Good to hear :) @jonaslagoni I don't think so :P we should use always the latest 2.X.X version of marked, probably the maintainers will change the optional chaining to normal |
Yea, but we cannot wait until they get that solved, who knows when? 😄 For now, we should probably downgrade the dependency so the users are not affected on our end. |
Of course they do have a PR in progress - markedjs/marked#2109 But still 😄 |
yup, I agree with @jonaslagoni |
I created the PR asyncapi/asyncapi-react#371. After merging markedjs/marked#2109 I will revert changes :) |
@magicmatatjahu guess you can revert it now 😆 |
If someone will have similar problems, please reopen the issue :) |
Describe the bug
Since today (16/06/2021) I'm unable to the HTML bundled file based on our AsyncApi doc
Maybe the issue is related to yesterday release ?
The error :
How to Reproduce
Use the command :
npx ag spec.yaml @asyncapi/html-template --force-write -p singleFile=true -p outFilename=index.html
The
package.json
file sets theasyncapi/generator
dependency at^1.7.0
Content of the
spec.yaml
file :I tried to downgrade
asyncapi/generator
and/orasyncapi/html-template
versions (by using a specific version in the npx command forasyncapi/html-template
) but all my tries generates the same errorExpected behavior
Being able to generate the HTML file like before today
TIA
The text was updated successfully, but these errors were encountered: