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

React Dark Reader only Work Locally #15

Open
ridi1993 opened this issue Dec 9, 2021 · 2 comments
Open

React Dark Reader only Work Locally #15

ridi1993 opened this issue Dec 9, 2021 · 2 comments

Comments

@ridi1993
Copy link

ridi1993 commented Dec 9, 2021

Hi,
I have installed The React Dark Reader package, locally it works fine, but when deploying it online, doesn't work properly.
Please see below the screenshot:
image

Any suggestions on how to solve the issue?

Thanks in advance,

@Radon333
Copy link

What version are you using? I am not even able to install it using npm install react-darkreader .

It says:

Found: react@17.0.2 npm ERR! node_modules/react npm ERR! react@"^17.0.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.8.6" from react-darkreader@1.5.6 npm ERR! node_modules/react-darkreader npm ERR! react-darkreader@"*" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry

@fabicsp
Copy link

fabicsp commented Jan 3, 2022

I have faced with same issue.

We are using semantic-ui-react / styled-components for styling.

The strange fact is, if you use the chrome extension to switch the dark / light mode, it will work in prod aswell, but after a blink.

I can publish the source code, and a minimal reproduction of the bug:

Source code: Github

Live demo: https://heroku-test-sc-sem-ui.herokuapp.com

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

3 participants