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

Cannot read properties of undefined (reading 'appInsightsConfig') #20

Open
anoushkarevealit opened this issue Sep 1, 2022 · 1 comment

Comments

@anoushkarevealit
Copy link

Hi!

I was trying to install Application Insights into my Vue application and I ran into the following error:
Screen Shot 2022-09-01 at 3 02 30 pm
Here is the code snippet that I used to try and initialise application insights into my app:
I have Vue 2.6.12.
import Skeleton from "vue-loading-skeleton";
import VueCookies from "vue-cookies";
import VueAppInsights from "vue-application-insights";

import Skeleton from "vue-loading-skeleton";
import VueCookies from "vue-cookies";
import VueAppInsights from "vue-application-insights";

require("./bootstrap");
require("./events.js");
require("./store/subscriber.js");
require("./constant.js");
import Vue from "vue";

axios.defaults.baseURL = window.apiUrl;

Vue.use(VueCookies);
Vue.use(Skeleton);
Vue.use(alert);
Vue.use(loading);
Vue.use(VueAppInsights, {
    id: "<my_id>",
    appInsightsConfig: {}
});

Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key]);
});

require("./blade_component_list.js");

new Vue({
    store
}).$mount("#app");

Any ideas what is wrong?
Thanks!

@illespaeuaa
Copy link

hi! I've just run into the same issue, have you managed to solve it?

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