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

Picker not displaying on 2.3.1 (template or render function not defined) #73

Closed
evanwirt opened this issue Oct 21, 2020 · 1 comment
Closed

Comments

@evanwirt
Copy link

Describe the bug
The picker isn't showing on 2.3.1 and am getting the error in the console:
Failed to mount component: template or render function not defined
It shows fine on 2.3.0
2.3.1 has been released on npm.

To Reproduce

  1. Go to: https://codesandbox.io/s/vue-example-emoji-picker-2-746pq?file=/package.json
  2. Switch emoji-picker library to 2.3.1.
  3. Click on emoji button.
  4. Don't see emoji picker. See console error message.
  5. Switch library to 2.3.0
  6. Click on emoji button.
  7. See picker appear.

Expected behavior
Picker shows up.

Desktop (please complete the following information):

  • OS: [Windows 10]
  • Browser [chrome]
  • Version [86.0.4240.75]
@joaoeudes7
Copy link
Owner

Sorry @evanwirt, @vmurgic, have changes in import module to support to global use.
To import local use:

import { VEmojiPicker, emojisDefault, categoriesDefault } from "v-emoji-picker";

To import global use:

import VEmojiPicker from "v-emoji-picker";

Vue.use(VEmojiPicker)

@joaoeudes7 joaoeudes7 pinned this issue Oct 27, 2020
@joaoeudes7 joaoeudes7 changed the title Picker not displaying on 2.3.1 Picker not displaying on 2.3.1 (template or render function not defined) Nov 5, 2020
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

2 participants