vue-code-highlight
vue-code-highlight copied to clipboard
Can't find variable VueCodeHighlight
Hi, thanks for the work on this package, Im trying to link the files and use the directive but Im getting "Can't find variable VueCodeHighlight", what Im doing wrong? I don't use components
Appreciate the help
<script src="npm/vue-code-highlight/vue-code-highlight.min.js"></script>
<link href="npm/vue-code-highlight/themes/duotone-sea.css" rel="stylesheet">
<script>
Vue.use(VueCodeHighlight);
Hi,
I guess the variable exported from the is just named vueCodeHighlight
with lowercase v
.
https://github.com/elisiondesign/vue-code-highlight/blob/master/dist/vue-code-highlight.min.js#L1
Try that and let me know, it should work for you.
Hello Jan, thanks for the response, I was wondering if is there any way to use the package the old way, a simple single ja file? Thanks