We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am trying to add router:
import Vue from "vue"; import Router from "vue-router"; Vue.use(Router); const Home = () => import("./pages/home/"); const Login = () => import("./pages/login/"); const router = new Router({ routes: [ { path: "/", name: "Home", component: Home, meta: { requiresAuth: true } }, { path: "/login", name: "Login", component: Login, meta: { plainLayout: true } } ], base: "/", mode: "history", linkActiveClass: "active" });
but getting some wired errors after compile:
(function (exports, require, module, __filename, __dirname, process, global, Buffer) { return function (exports, require, module, __filename, __dirname) { "use strict"; exports.__esModule = true; var vue_1 = require("vue"); var vue_router_1 = require("vue-router"); vue_1["default"].use(vue_router_1["default"]); --->> it says here Cannot read property 'use' of undefined
This is my render.ts:
import Vue from "vue"; import { Component } from "vue-property-decorator"; import router from "./router"; import store from "./store"; Vue.use(require("vue-electron")); // require("./assets/css/site.css"); // import VueAnalytics from "vue-analytics"; /*Vue.use(VueAnalytics, { id: "", autoTracking: { exception: false }, debug: { enabled: false }, onAnalyticsReady () { console.log(this); }, router });*/ import template from "./render.template.vue"; @Component({ mixins: [template], store, components: { }, router, }) class App extends Vue { } new Vue(App).$mount("#app");
Can you help out?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am trying to add router:
but getting some wired errors after compile:
This is my render.ts:
Can you help out?
The text was updated successfully, but these errors were encountered: