Skip to content

Cite.References Broken #804

@brandonjackson

Description

@brandonjackson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions