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

not working in electron windows. #378

Open
dhananjay0610 opened this issue Nov 30, 2023 · 9 comments
Open

not working in electron windows. #378

dhananjay0610 opened this issue Nov 30, 2023 · 9 comments

Comments

@dhananjay0610
Copy link

we are using inside a project using react.js, we are using this inside a electron window and it isn't working.

@ealush
Copy link
Owner

ealush commented Nov 30, 2023

What do you mean by not working?

@dhananjay0610
Copy link
Author

dhananjay0610 commented Nov 30, 2023

Screenshot 2023-11-30 at 2 51 41 PM
the css isn't working

@ealush
Copy link
Owner

ealush commented Nov 30, 2023

oh my. can you try importing the CSS separately from the dist just to see if it works?

@ealush
Copy link
Owner

ealush commented Nov 30, 2023

Can you try: dist/emoji-picker-react.cjs.development.css if that works for you, I will try to understand how to provide a more reliable style source. I have little experience with electron, so I am not completely certain why it doesn't load the stylesheet.

@dhananjay0610
Copy link
Author

i tried using
import 'emoji-picker-react/dist/emoji-picker-react.cjs.development.css';

inside the file where <EmojiPicker is used but don't see any change.still same issue

@dhananjay0610
Copy link
Author

dhananjay0610 commented Nov 30, 2023

I found this in Electron file :

    • components using CSS/SASS to be loaded by webpack style-loader will not work and should be migrated to chameleon-chakra-ui
    • many features are only supported in Electron environment

@ealush
Copy link
Owner

ealush commented Dec 1, 2023

How do you usually consume styles in your application?

@dhananjay0610
Copy link
Author

using chakra ui

@ealush
Copy link
Owner

ealush commented Dec 1, 2023

Yeah, that might be an issue. The picker is build directly with CSS. What about trying to consume the stylisheet via a style tag as suggested here?

https://stackoverflow.com/questions/61162683/electron-how-to-import-or-include-css-installed-using-npm-package-manager-in-ou

Essentially, we need to find a way to get the picker styles to your application.

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