I get this error in console log and a blank screen no error i terminal
Uncaught TypeError: _Vue.component is not a function
at MyButtons.vue (MyButtons.vue:8)
at fileEvaluate (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346)
at Module.require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248)
at require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268)
at app.js?hash=76f32cd248cfb23daa6d33c56b29698f854b2a0d:4019
I have tried:
Meteor update
Npm update
Meteor reset
Restarted computer
I have seen it, when i use this https://github.com/meteor-vue/vue-meteor-demo and update it to 1.8.2 there is no problem, it is something in my packages or the manner I include vue
This dont work:
meteor package
# Meteor packages used by this project, one per line.
# Check this file (and the other files in this directory) into your repository.
#
# 'meteor add' and 'meteor remove' will edit this file for you,
# but you can also edit it by hand.
meteor-base@1.4.0 # Packages every Meteor app needs to have
mobile-experience@1.0.5 # Packages for a great mobile UX
mongo@1.7.0 # The database Meteor supports right now
reactive-var@1.0.11 # Reactive variable for tracker
jquery@1.11.10 # Helpful client-side library
tracker@1.2.0 # Meteor's client-side reactive programming library
standard-minifier-css@1.5.4 # CSS minifier run for production mode
standard-minifier-js@2.5.0 # JS minifier run for production mode
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.13.0 # Enable ECMAScript2015+ syntax in app code
# insecure@1.0.7 # Allow all DB writes from clients (for prototyping)
# static-html@1.1.12 # dont use because of blaze template
akryum:vue
akryum:vue-component
session@1.2.0
shell-server@0.4.0
# stylus@=2.513.14
dynamic-import@0.5.1
akryum:vue-stylus
planettraining:material-design-icons-font
polyroid:font-roboto
accounts-base@1.4.5
accounts-password@1.5.2
accounts-ui@1.3.1
blaze-html-templates
# useraccounts:core
# useraccounts:unstyled
akryum:vue-blaze-template
# accounts-google
underscore@1.0.10
akryum:vue-router2@=0.2.0
meteorhacks:aggregate
import {Meteor} from 'meteor/meteor';
import {Vue} from 'meteor/akryum:vue';
Try: "meteor remove akryum:vue" since you already have it as an npm module, then:
// no need to import Meteor
import Vue from 'vue';
Also, is there any reason you have locked akryum:vue-router2 to @=0.2.0 in .meteor/packages? I use the latest quite happily,
Also, I highly reccommend akryum:vue-pug - once you’ve started writing Vue templates in pug all your old html templates will look ugly and verbose Plus it generates slightly smaller template render functions because all superfluous white space is removed.
I think you should also take another look at this comment on the the bug report.
Looks like this is only a problem when components are automatically registered by being in the client folder (which mine aren’t, hence I was OK). If you move them into the imports folder and manually import them then you should be OK. Another benefit of moving them into the imports folder is SSR check this out
Alternatively you could try the forked package as mentioned in that github comment.
I’m encountering the same problem after updating a project
Also getting this message in console (not sure if related):
The version of @babel/runtime installed in your node_modules directory
(7.7.0) contains a breaking change which was introduced by
https://github.com/babel/babel/pull/8266. Please either downgrade by
running the following command:
meteor npm install --save-exact @babel/runtime@7.0.0-beta.55
or update to the latest beta version of Meteor 1.7.1, as explained in
this pull request: https://github.com/meteor/meteor/pull/9942.
Uncaught TypeError: module.watch is not a function
at main.routes.js (main.routes.js:1)
at fileEvaluate (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:346)
at Module.require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:248)
at require (modules-runtime.js?hash=23fe92393aa44a7b01bb53a510a9cab5fb43037c:268)
at app.js?hash=4360dd5964ba25adb1f1dcd0a36e2fa0c8cc1222:3988