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

JS Console Error in inspect view: TypeError: Cannot read properties of undefined (reading 'replace') #1487

Open
JasonGross opened this issue Mar 15, 2025 · 1 comment
Assignees
Labels

Comments

@JasonGross
Copy link
Contributor

I don't see any obvious failures from this, but when I click "sample" when viewing 2025-03-15T18-10-55+00-00_coq-to-lean_cVPifQF25ocKgzim9vbCb5.eval.tar.gz, I see in console

index.js:65751 TypeError: Cannot read properties of undefined (reading 'replace')
at htmlEscape (index.js:65988:21)
at HtmlFormatter.formatValue (index.js:65879:29)
at HtmlFormatter.format_added (index.js:65934:14)
at HtmlFormatter.recurse (index.js:65747:26)
at index.js:65762:16
at HtmlFormatter.forEachDeltaKey (index.js:65808:11)
at HtmlFormatter.formatDeltaChildren (index.js:65761:14)
at HtmlFormatter.format_node (index.js:65929:14)
at HtmlFormatter.recurse (index.js:65747:26)
at index.js:65762:16

@dragonstyle
Copy link
Collaborator

Thanks for reporting this. I've noticed this as well and it appears it is caused by this issue:

benjamine/jsondiffpatch#367

Specifically in the example eval we are generating a diff of an array that ends with an undefined value (and the value is subsequently removed). So far I have noticed no other side effects aside from the console logging, but will leave open to track.

@dragonstyle dragonstyle self-assigned this Mar 15, 2025
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

2 participants