Skip to content
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

Cannot read properties of undefined (reading '0') on docusaurus #730

Closed
Streeterxs opened this issue May 19, 2023 · 5 comments
Closed

Cannot read properties of undefined (reading '0') on docusaurus #730

Streeterxs opened this issue May 19, 2023 · 5 comments
Labels

Comments

@Streeterxs
Copy link

using docusaurus with asyncapi returns Error: Cannot read properties of undefined (reading '0') error.

I made a repo to reproduce https://github.com/Streeterxs/test-docusaurus

@github-actions
Copy link

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.

Copy link
Member

derberg commented May 23, 2023

It is hard to say what is the solution as I'm not docusaurus maintainer and do not have capacity to dig into it. We are for sure accepting PRs

@GreenRover
Copy link
Contributor

GreenRover commented Sep 3, 2023

I can reproduce it with:

Put following schema to: https://asyncapi.github.io/asyncapi-react/

asyncapi: 2.6.0
info:
  title: runtime-v2-prod
  version: 3.0.6-SNAPSHOT
  description: demo
defaultContentType: application/json
channels:
  tms/capacityplanner/trip/p/v2/paths/find/in:
    description: |
      STAGE PROD: Trip Runtime Calculation
    publish:
      bindings:
        solace:
          destinations:
            - destinationType: topic
              topicSubscriptions:
              - tms/capacityplanner/trip/p/v2/paths/find/in
      message:
        $ref: '#/components/messages/TodoReplaceMeSometimePleaseMessage'
components:
  messages:
    TodoReplaceMeSometimePleaseMessage:
      description: |
        This is a place holder. Will be replaced with a real schema in the future.
      contentType: application/json
      payload:
        $ref: 'https://gist.githubusercontent.com/GreenRover/6aaa6727aaf6cca65c12464a8ff388f0/raw/1c10fbb77cc2870b221da72f7a27c0a6f486b3ad/kafka-schema-example.json#/definitions/CorridorConflict'

Expected: Schema will be displayed as with https://studio.asyncapi.com/

@GreenRover
Copy link
Contributor

In next branch it works.

Copy link

github-actions bot commented Jan 4, 2024

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 ❤️

@github-actions github-actions bot added the stale label Jan 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants