vue-menu icon indicating copy to clipboard operation
vue-menu copied to clipboard

Several Vue Warn received for simple example

Open CharGomez opened this issue 5 years ago • 13 comments

I'm receiving different warns when trying to implement a simple context menu, using code from the examples, this warn is triggered when I hover on a child element.

Educlimber 2019-03-25 23-29-29
  <hsc-menu-style-white>
    <hsc-menu-button-menu style="margin: 50px;" @open="open" @close="close">
      <button>Click Here</button>
      <template slot="contextmenu">
        <hsc-menu-item label="MenuItem 1"/>
        <hsc-menu-item label="MenuItem 2"/>
        <hsc-menu-item label="MenuItem 2">
          <hsc-menu-item label="MenuItem 4"/>
          <hsc-menu-item label="MenuItem 5"/>
        </hsc-menu-item>
      </template>
    </hsc-menu-button-menu>
  </hsc-menu-style-white>
</template>
<script>
export default {
  methods: {
    open() {
      console.log("open");
    },
    close() {
      console.log("close");
    }
  }
};
</script>
<style>
.box {
  box-shadow: 0 0 4pt rgba(0, 0, 0, 0.25);
  border-radius: 20pt;
  background-color: rgba(255, 255, 255, 0.25);
  user-select: none;
  cursor: context-menu;
}
</style>```

CharGomez avatar Mar 26 '19 05:03 CharGomez

What warning did you get?

michitaro avatar Mar 26 '19 05:03 michitaro

What warning did you get?

I just updated the Issue 😄

CharGomez avatar Mar 26 '19 05:03 CharGomez

Oh, thanks for the report. I'll inspect it.

michitaro avatar Mar 26 '19 05:03 michitaro

I cannot reproduce the problem with a cleanly re-created project. Could you provide a repository reproducing the problem?

The warning in your screenshot sais property or method $firebaseRefs is not defined. The problem is caused in conflicts between vue-menu and firebase-things.

michitaro avatar Mar 26 '19 07:03 michitaro

Screen Shot 2019-05-10 at 12 27 27

+1 for this

dd1994 avatar May 10 '19 04:05 dd1994

Also getting this issue.

notchris avatar Jun 05 '19 01:06 notchris

An update: This issue occurs even without anything firebase related in my project.

notchris avatar Jul 14 '19 16:07 notchris

@notchris Could you share your package.json and package-lock.json?

michitaro avatar Jul 14 '19 22:07 michitaro

@michitaro Sure thing, here is my package.json. Do you want the yarn.lock file as well?

notchris avatar Jul 14 '19 23:07 notchris

@notchris Thanks!

Do you want the yarn.lock file as well?

Yes, I'd like it.

michitaro avatar Jul 15 '19 01:07 michitaro

Sure thing, had trouble with bpaste since it's larger so I put it on my server temporarily. https://notchris.net/example_yarnlock.txt

notchris avatar Jul 15 '19 02:07 notchris

I could not reproduce the problem with your package.json and yarn.lock. Could you provide a minimum reproduction repository? Or could you make changes on this repository and make a PR?

michitaro avatar Jul 15 '19 09:07 michitaro

@michitaro Sure thing, when I get home from work I'll create a mrr.

notchris avatar Jul 15 '19 17:07 notchris