Skip to content

Event is not defined with nuxt.js #115

@oleksandr-hyriavets

Description

@oleksandr-hyriavets

I'm submitting a ...

  • bug report
  • feature request
  • support request

What is the current behavior?

On the component's mount throws a runtime exception "event is not defined"
image

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

STR:

  • create an empty nuxt app
  • add vue-simple-suggest
  • refresh the page

What is the expected behavior?

It should work:)

How are you importing Vue-simple-suggest?

  • ESNext (original code, single-file .vue component, css included) (import VueSimpleSuggest from 'vue-simple-suggest/lib')
  • ES6 (import VueSimpleSuggest from 'vue-simple-suggest')
  • ES7 and above (import VueSimpleSuggest from 'vue-simple-suggest/dist/es7')
  • Bundled version (import VueSimpleSuggest from 'vue-simple-suggest')
  • CommonJS (const VueSimpleSuggest = require('vue-simple-suggest'))
  • UMD Component (<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest"></script>)

Please tell us about your environment:

  • Vue.js Version: 2.6.10
  • Vue-simple-suggest version: 1.9.2
  • Browser: [all]
  • Language: [all]

Other information

Probably bug was created by fixing #92 . If revert these changes all works well:)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomerspatchThis is a thing to include in the next patchresolvedThis issue is resolved in the latest version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions