Skip to content

Expanding properties on some CRDs breaks page rendering with a "The language "undefined" has no grammar." error #182

Description

@KingJ

On some CRDs, expanding any of the properties within the CRD's spec will cause the page to go blank other than the very top header;

image

When this happens, the following error is logged to the browser's console;

react-dom.production.min.js:125 Error: The language "undefined" has no grammar.
Please report this to https://github.com/markedjs/marked.
    at Object.highlight (prism-core.min.js:1:3872)
    at e.code (v1beta1@v1.8.3:93:60)
    at e.code (marked.min.js:6:34023)
    at n.parse (marked.min.js:6:30323)
    at Function.parse (marked.min.js:6:29865)
    at se (marked.min.js:6:33474)
    at getDescription (v1beta1@v1.8.3:111:35)
    at SchemaPart (v1beta1@v1.8.3:209:118)
    at v1beta1@v1.8.3:213:33
    at Array.map (<anonymous>)

I've been able to consistently trigger this with the kubernetes-sigs/cluster-api@v1.8.3 KubeadmControlPlane.v1beta1.controlplane.cluster.x-k8s.io CRD on Firefox 130.0.1, Chrome 129.0.6668.70, and Safari on macOS 14.6.1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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