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

$listeners and $attrs error in console #8

Open
pijlwagen opened this issue Oct 28, 2020 · 4 comments
Open

$listeners and $attrs error in console #8

pijlwagen opened this issue Oct 28, 2020 · 4 comments

Comments

@pijlwagen
Copy link

pijlwagen commented Oct 28, 2020

Hi, nice package it looks great!

When using i did come across some issues in the console, everything still seems to be working fine. The errors appear once the modal is shown

[Vue warn]: $listeners is readonly.

found in

---> <VueSimplePortal>
       <VueModal>
         <AddProductWithoutOptions> at resources/js/frontend/components/AddProductWithoutOptions.vue
           <Root>
[Vue warn]: $attrs is readonly.

found in

---> <VueSimplePortal>
       <VueModal>
         <AddProductWithoutOptions> at resources/js/frontend/components/AddProductWithoutOptions.vue
           <Root>

I'm importing the package using webpack (laravel mix)

import VueModal from '@kouts/vue-modal';
Vue.component('Modal', VueModal);

const app = new Vue({
    el: '#app',
});
<button class="btn btn-primary" @click="modal = !modal">Open modal</button>

<modal v-model="modal">

</modal>
@kouts
Copy link
Owner

kouts commented Oct 28, 2020

Thanks @Michel3951, I haven't seen that error in any of my project.
Is it possible that you can you reproduce it somehow in a GitHub repo so that I can take a look?

@pijlwagen
Copy link
Author

Hm, I tried to reproduce the error in a new project but was unable to do so. The error only occurs when I'm using npm run watch. I just tried npm run prod and there are no errors in the console so I guess it has something to do with my webpack configuration.

@kouts
Copy link
Owner

kouts commented Oct 29, 2020

Hey @Michel3951 can you check this issue here LinusBorg/portal-vue#201
configuring an alias of vue in webpack config seems to fix it.

@kouts kouts reopened this Oct 29, 2020
@MohamedHana
Copy link

This issue solved here: LinusBorg/portal-vue#201 (comment)

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