Skip to content

Using OneDark theme throws Runtime Error #53

Description

@lthomas122

I'm trying to use the One Dark theme, but I keep getting the following error:

image

My implementation is as follows:

<template>
    <code-mirror v-model="value" basic tab wrap :dark="true" :theme="oneDark" :lang="lang" />
</template>

<script>
import { ref, defineComponent } from 'vue';

import CodeMirror from 'vue-codemirror6';
import { python } from '@codemirror/lang-python';
import { oneDark } from '@codemirror/theme-one-dark';

export default defineComponent({
    components: {
        CodeMirror,
    },
    setup() {
        const lang = python();
        const value = ref('// start typing Python code or something...');

        return { value, lang, oneDark };
    },
});
</script>

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions