delowardev / vue3-emoji-picker

Simple and Powerful Emoji Picker for Vue3
https://codesandbox.io/p/github/delowardev/vue3-emoji-picker/main?file=%2FREADME.md
MIT License
171 stars 34 forks source link

[Resolved] CSS files missing #44

Open HAFTSTUDIO opened 1 year ago

HAFTSTUDIO commented 1 year ago

i'm trying to use the emoji picker but when i import the css files : internal serever error: Missing css export in vue3-emoji picker

delowardev commented 1 year ago

Hi @HAFTSTUDIO, could you please share your project environment/details? Such as:

Thanks

HAFTSTUDIO commented 1 year ago

using vue == 3.2.41 emoji-picker ^1.1.7 vite ^3.0.8

delowardev commented 1 year ago

I'm unsure what could be the reason here, but I think you can directly point the CSS path like import 'node_modules/vue3-emoji-picker/dist/style.css'

I did check with latest vite & vue 3, works fine for me: https://codesandbox.io/p/github/delowardev/vue3-emoji-picker-example/main?file=%2Fpackage.json&selection=%5B%7B%22endColumn%22%3A20%2C%22endLineNumber%22%3A11%2C%22startColumn%22%3A20%2C%22startLineNumber%22%3A11%7D%5D

HAFTSTUDIO commented 1 year ago

Thank you. importing directly has worked. I also get this Screenshot from 2022-11-11 13-50-05

delowardev commented 1 year ago

To fix this, you can write declare module 'vue3-emoji-picker' in any of your .d.ts files

HAFTSTUDIO commented 1 year ago

Fixed it!! Thank you.