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

Cite.References Broken #804

Open
brandonjackson opened this issue Nov 27, 2024 · 0 comments
Open

Cite.References Broken #804

brandonjackson opened this issue Nov 27, 2024 · 0 comments

Comments

@brandonjackson
Copy link

Describe the bug
Using Cite.References /] breaks the build process.

To Reproduce
Steps to reproduce the behavior:

  1. Setup fresh project using idyll create
  2. Copy and paste example code from Cite component docs
  3. Look at error in terminal

Expected behavior
References render like in the example.

Screenshots
Error in terminal:

TypeError: Cannot read properties of undefined (reading 'References')
    at ReactJsonSchema.resolveComponent (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:181:43)
    at ReactJsonSchema.createComponent (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:150:28)
    at ReactJsonSchema.parseSchema (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:104:24)
    at ReactJsonSchema.parseSubSchemas (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:127:34)
    at ReactJsonSchema.parseSchema (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:102:25)
    at ReactJsonSchema.resolveComponentChildren (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:208:63)
    at ReactJsonSchema.createComponent (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:151:27)
    at ReactJsonSchema.parseSchema (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:104:24)
    at ReactJsonSchema.parseSubSchemas (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:127:34)
    at ReactJsonSchema.parseSchema (my-idyll-post/node_modules/idyll-document/dist/cjs/index.js:102:25)

Desktop (please complete the following information):

  • Mac 15.15 / Chrome 131

Additional context
If you omit the [Cite.References /] tag from sample code, the footnote itself works fine...so that suggests to me that it really is the References tag.

Sadly, I'm not knowledgable enough to fix this myself...but I love idyll and am hoping that someone might be able to help keep it working 🙏

Tagging folks who I saw were part of original chat about this component - @rollaball @amitbadala @mathisonian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant