-
-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
Describe the bug
Using Cite.References /] breaks the build process.
To Reproduce
Steps to reproduce the behavior:
- Setup fresh project using
idyll create - Copy and paste example code from Cite component docs
- 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
Labels
No labels