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

ReferenceError: _h is not defined #3

Open
picsoung opened this issue Feb 17, 2017 · 3 comments
Open

ReferenceError: _h is not defined #3

picsoung opened this issue Feb 17, 2017 · 3 comments

Comments

@picsoung
Copy link

Hey,

Thank you for all the hard work getting meteor and vue working together.
I am trying to learn, following the different repos.

But when I cloned this one, ran meteor npm install and try to launch the project run meteor command.
I got the following error on my browser:

[Vue warn]: Error when rendering anonymous component: 
Uncaught ReferenceError: _h is not defined
   at Proxy.__vue_options__.render (app.js:30)
   at VueComponent.Vue._render (modules.js:2900)
   at VueComponent.updateComponent (modules.js:3293)
   at Watcher.get (modules.js:3618)
   at new Watcher (modules.js:3610)
   at VueComponent.Vue._mount (modules.js:3292)
   at VueComponent.Vue$2.$mount (modules.js:6862)
   at init (modules.js:2424)
   at createComponent (modules.js:4858)
   at createElm (modules.js:4801)

Vue version: 2.1.10
Meteor version: 1.4.1.2

Any idea?
thanks

@Akryum
Copy link
Owner

Akryum commented Feb 17, 2017

Did you try updating the meteor packages with meteor update?

@picsoung
Copy link
Author

picsoung commented Feb 17, 2017

I just did and it changed my packages.json to:

{
  "name": "meteor-vue-example-routing",
  "private": true,
  "scripts": {
    "start": "meteor run"
  },
  "dependencies": {
    "meteor-node-stubs": "~0.2.0",
    "vue": "^2.0.0-rc.8",
    "vue-meteor-tracker": "^1.0.3",
    "vue-router": "^2.0.0-rc.5"
  },
  "devDependencies": {
    "vue": "^2.0.0-rc.8",
    "vue-router": "^2.0.0-rc.5"
  }
}

but now I am having another error:
Error: Can't find npm module 'babel-runtime/helpers/classCallCheck'. Did you forget to call 'Npm.depends' in package.js within the 'modules-runtime' package?

here is my meteor list:

akryum:vue             1.2.2  Integrate Vue with Meteor
akryum:vue-component   0.8.5  VueJS single-file components that hot-reloads
akryum:vue-router2     0.0.2  Easy vue routing for Meteor - vue-router 2.x
akryum:vue-stylus      0.0.4  Add stylus support for vue components
autopublish            1.0.7  (For prototyping only) Publish the entire database to all clients
ecmascript             0.6.3  Compiler plugin that supports ES2015+ in all .js files
es5-shim               4.6.15  Shims and polyfills to improve ECMAScript 5 support
insecure               1.0.7  (For prototyping only) Allow all database writes from the client
jquery                 1.11.10  Manipulate the DOM using CSS selectors
meteor-base            1.0.4  Packages that every Meteor app needs
mobile-experience      1.0.4  Packages for a great mobile user experience
mongo                  1.1.15  Adaptor for using MongoDB and Minimongo over DDP
reactive-var           1.0.11  Reactive variable
session                1.1.7  Session variable
shell-server           0.2.2  Server-side component of the `meteor shell` command.
standard-minifier-css  1.3.3  Standard css minifier used with Meteor apps by default.
standard-minifier-js   1.2.2  Standard javascript minifiers used with Meteor apps by default.
static-html            1.2.0  Define static page content in .html files
tracker                1.1.2  Dependency tracker to allow reactive callbacks

@green-coder
Copy link

green-coder commented Mar 10, 2017

I ran into the exact same problem. This is how I fixed it:

meteor update
meteor update --all-packages
meteor npm install --save babel-runtime

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

3 participants