Cannot read property 'config' of undefined on Modals, Dropdown

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

30 Jun 2021, 01:47

Please i need help with these errors i am facing

I am setting up Freya with Inertia js on Laravel, layout is all good functionality is all good so far except for dropdown and modal
I am not sure which file i missed or didn't import properly with webpack


Code: Select all

Uncaught (in promise) TypeError: Cannot read property 'config' of undefined
    
    // Error is coming form here 
    
     mounted() {
        primevue_toasteventbus__WEBPACK_IMPORTED_MODULE_0__.default.on('add', this.onAdd);
        primevue_toasteventbus__WEBPACK_IMPORTED_MODULE_0__.default.on('remove-group', this.onRemoveGroup);
        primevue_toasteventbus__WEBPACK_IMPORTED_MODULE_0__.default.on('remove-all-groups', this.onRemoveAllGroups);

        if (this.autoZIndex) {
            primevue_utils__WEBPACK_IMPORTED_MODULE_3__.ZIndexUtils.set('modal', this.$refs.container, this.baseZIndex || this.$primevue.config.zIndex.modal);  //This is the line where the error is coming from ****************
        }
    },
    _______________________________________________________________________________________________________________________________________________________
    
   Uncaught (in promise) TypeError: Cannot read property 'created' of undefined
    
    function invokeDirectiveHook(vnode, prevVNode, instance, name) {
    const bindings = vnode.dirs;
    const oldBindings = prevVNode && prevVNode.dirs;
    for (let i = 0; i < bindings.length; i++) {
        const binding = bindings[i];
        if (oldBindings) {
            binding.oldValue = oldBindings[i].value;
        }
        let hook = binding.dir[name];		 //This is giving an error as well  **********
        if (hook) {
            // disable tracking inside all lifecycle hooks
            // since they can potentially be called inside effects.
            (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.pauseTracking)();
            callWithAsyncErrorHandling(hook, instance, 8 /* DIRECTIVE_HOOK */, [
                vnode.el,
                binding,
                vnode,
                prevVNode
            ]);
            (0,_vue_reactivity__WEBPACK_IMPORTED_MODULE_0__.resetTracking)();
        }
    }
}

Thanks for the advise

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

30 Jun 2021, 08:48

Did you add

Code: Select all

<Toast />
component to your app?

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

30 Jun 2021, 09:48

Yes i did,

I am trying to set this up with Laravel Inertia Js,
setting up is more than my skill set if any Primmum service to help setups for me, i am willing to pay for the setup service

I sent an email inquiring about premium support didn't get a reply

I am thinking to go by Element or Vuetify i am familiar with

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

30 Jun 2021, 13:48

Hi,

You can ask your all questions freely on forum or discord channel. But some issues is not clear and I can't say much without a simple codesandbox template or a repo demonstrating the issue.

vivastate
Posts: 10
Joined: 18 Jun 2021, 13:08

30 Jun 2021, 14:27

Thanks for your help

I will stick to the UI library that i know how to setup so far

tugce.kucukoglu
Posts: 560
Joined: 23 Oct 2020, 09:28

01 Jul 2021, 15:59

Did you check the setup page https://www.primefaces.org/primevue/showcase/#/setup? This video might help.

Post Reply

Return to “Freya - PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests