-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Option "errors: true" shows empty/blank page when document has errors #874
Comments
hey @ivangsa
Here the document object turns out undefined and hence no error is thrown.
This is one way we could resolve this issue. I will draft a PR for the same and we can communicate over it. |
Hey @derberg if you may help guide through this it will be great. |
This maybe an upstream error as the parser does not throw an error as of the latest version but rather an undefined document object witth a error message in the diganostic object |
Description
As reported in VSCode AsyncAPI Preview:
asyncapi/vs-asyncapi-preview#200
After upgrading to latest:
"@asyncapi/react-component": "^1.2.7"
It shows a blank page when document contains validation errors
This are the configuration options used:
![image](https://private-user-images.githubusercontent.com/1246876/291199657-22a4834d-2084-4dfa-b526-abcf3cf776d2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg3ODI4MTEsIm5iZiI6MTcxODc4MjUxMSwicGF0aCI6Ii8xMjQ2ODc2LzI5MTE5OTY1Ny0yMmE0ODM0ZC0yMDg0LTRkZmEtYjUyNi1hYmNmM2NmNzc2ZDIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYxOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MTlUMDczNTExWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWVhYTIxMDMyYjdlOGM3MzA1OGE4OTdlMTUxNWFjMDZkYWNkOGNiNTIyNDQ5MmNkYjZiMzFmNGRjZjY1NzE4ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.gen7c-F2sPDjxsg6jK6t1Rw8aGqJt1L-z9qlBJTgUEU)
The text was updated successfully, but these errors were encountered: