vue-code-highlight icon indicating copy to clipboard operation
vue-code-highlight copied to clipboard

Can't find variable VueCodeHighlight

Open nam-co opened this issue 4 years ago • 2 comments

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);

nam-co avatar Mar 29 '20 17:03 nam-co

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.

honzabilek4 avatar Mar 30 '20 07:03 honzabilek4

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

nam-co avatar Mar 30 '20 12:03 nam-co