Skip to content

Needed to import from dist/index.umd to avoid having multiple Vue instances #53

@afontcu

Description

@afontcu

Hi mate! I was running into some issues with vue-simple-portal in Nuxt because it was importing another Vue instance so I was getting the usual “$attrs is readonly” “$listeners is readonly” errors.

I got it fixed by changing the import statement to

- import { Portal } from '@linusborg/vue-simple-portal'
+ import { Portal } from '@linusborg/vue-simple-portal/dist/index.umd'

but I wanted to double check if this is intended behavior or if I'm actually doing something wrong here 😇

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionWe need a minimal runnable reproduction from you to investigate your report

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions