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

Crash with particular title input #6

Closed
cyrusboadway opened this issue May 11, 2022 · 2 comments
Closed

Crash with particular title input #6

cyrusboadway opened this issue May 11, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@cyrusboadway
Copy link

What happened?

Providing specific content related to the title crashes the application: "Application error: a client-side exception has occurred (see the browser console for more information)."

framework-5f4595e5518b5600.js:1 TypeError: Cannot read properties of null (reading 'title')
    at 605040ef-5bf360b804c2c400.js:1:117210
    at Array.reduce (<anonymous>)
    at Se.resolve (605040ef-5bf360b804c2c400.js:1:117191)
    at Te (605040ef-5bf360b804c2c400.js:1:117674)
    at Te (605040ef-5bf360b804c2c400.js:1:117792)
    at rt.resolve (605040ef-5bf360b804c2c400.js:1:123029)
    at 605040ef-5bf360b804c2c400.js:1:123005
    at Array.map (<anonymous>)
    at rt.resolve (605040ef-5bf360b804c2c400.js:1:122995)
    at 605040ef-5bf360b804c2c400.js:1:123005

To reproduce

The following content crashes the demo app:

---
#
---

(i.e. deleting title: What is Markdoc? and replacing it with #)

Version

Unsure, but whichever the demo page is using.

Additional context

No response

@cyrusboadway cyrusboadway added the bug Something isn't working label May 11, 2022
@mfix-stripe
Copy link
Contributor

mfix-stripe commented May 11, 2022

Thanks @cyrusboadway. Fixed here: markdoc/docs@e1fc963
(Now deployed)

@cyrusboadway
Copy link
Author

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants