Skip to content

[Help] Property or method is not defined on the instance #77

@victorkurauchi

Description

@victorkurauchi

I forked the project today and it's a really great work here.
I'm working with a Modal in vue-admin and its content has a link that i just want to make a
<a @click="window.open('mylink')">My nice link</a>

But when i click on it, i get this error

Property or method "window" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option.

I'm not sure, but this message might have something to do with the createElement('div')

const openCardModal = (propsData = {}) => {
  return new CardModalComponent({
    el: document.createElement('div'),
    propsData
  })
}

Any clue about how can i get over it?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions