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

Can't find variable VueCodeHighlight #14

Open
nam-co opened this issue Mar 29, 2020 · 2 comments
Open

Can't find variable VueCodeHighlight #14

nam-co opened this issue Mar 29, 2020 · 2 comments

Comments

@nam-co
Copy link

nam-co commented Mar 29, 2020

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);
@honzabilek4
Copy link
Member

honzabilek4 commented Mar 30, 2020

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.

@nam-co
Copy link
Author

nam-co commented Mar 30, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants