Skip to content

ReferenceError: _h is not defined #8

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

Open
ra100 opened this issue Dec 17, 2016 · 10 comments
Open

ReferenceError: _h is not defined #8

ra100 opened this issue Dec 17, 2016 · 10 comments

Comments

@ra100
Copy link

ra100 commented Dec 17, 2016

After updating to vue 2.1.6 I'm getting error ReferenceError: _h is not defined and I can not use icon at all.

@anlek
Copy link

anlek commented Jan 3, 2017

@ra100 any luck finding a work around?

@ra100
Copy link
Author

ra100 commented Jan 3, 2017

@anlek I am not exactly sure, how I made it work
this is who I'm initializing vue:

new Vue({
  el: '#shoutbox-widget',
  template: '<App/>',
  components: { App }
})

then in component just:

import icon from 'vue-icons'

you can find it here:
https://github.com/ra100/shoutbox-widget/blob/master/src/main.js
https://github.com/ra100/shoutbox-widget/blob/master/src/components/ShMessageTwitter.vue
webpack config: https://github.com/ra100/shoutbox-widget/blob/master/build/webpack.base.conf.js

@kylewelsby
Copy link

I currently have this same issue too.. I'm trying to resolve this.

@kylewelsby
Copy link

I managed to find a solution. The codebase was using a private API that changed in a recent version of Vue Template Compiler

source: vuejs/vue#4536 (comment)

@mlnmln
Copy link

mlnmln commented Jan 5, 2017

Downgrading vue and vue-template-compiler to 2.1.4 temporarily fixed the issue for me. Can we expect @kylewelsby pr/fix upstream any time soon?

@zxc23
Copy link

zxc23 commented Jan 8, 2017

I'm suffering from this issue as well. Incredibly, when not using vue-icons, I get a similar error when using Vue 2.1.4 or earlier (SimulatedGREG/electron-vue#96), so I can't even go back to that to make vue-icons work.

What's the step by step process to get one of the PRs above to work with a project? I used npm install kylewelsby/vue-icons --save-dev, then realised it had to be built. In the node_modules/vue-icons folder I used npm install and npm install -g npm-run, and invoked a few of the npm build scripts, but things didn't seem to work out.

@kylewelsby
Copy link

kylewelsby commented Jan 8, 2017

Hey @zxc23 because vue-icons is written in coffee script and requires pre-compiling.

I have made a compiled version and it can be installed as follows.

npm install kylewelsby/vue-icons#v2.0.1a

This will have to be used until the current maintainer accepts the pull request and pushes a compiled version to npmjs.org

@zxc23
Copy link

zxc23 commented Jan 9, 2017

Thanks a heap!

BTW there's a backslash in that link: npm install https://github.com/kylewelsby/vue-icons#v2.0.1a or npm install kylewelsby/vue-icons#v2.0.1a

@kylewelsby
Copy link

thanks for pointing that out @zxc23 I have corrected the comment for people searching for the fix.

@kylewelsby
Copy link

@paulpflug are you ok to merge this any time soon?

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

Successfully merging a pull request may close this issue.

5 participants