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

[Resolved] CSS files missing #44

Open
HAFTSTUDIO opened this issue Nov 11, 2022 · 6 comments
Open

[Resolved] CSS files missing #44

HAFTSTUDIO opened this issue Nov 11, 2022 · 6 comments

Comments

@HAFTSTUDIO
Copy link

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
Copy link
Owner

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

  • Vue version.
  • Emoji Picker Version.
  • Code snippet/sandbox link.
  • Are you using Vite or Vue-cli?

Thanks

@HAFTSTUDIO
Copy link
Author

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

@delowardev
Copy link
Owner

delowardev commented Nov 11, 2022

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
Copy link
Author

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

@delowardev
Copy link
Owner

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

@HAFTSTUDIO
Copy link
Author

Fixed it!! Thank you.

@delowardev delowardev changed the title CSS files missing [Resolved] CSS files missing Dec 9, 2022
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