-
Notifications
You must be signed in to change notification settings - Fork 25
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
ReactHover elements don't appear in production build? #11
Comments
hm...I checkout that repo and tried to build it and upload here it seems it can't find the bundle js files from the console message... |
@stevemao do you have any idea of this issue? |
There might be a problem with |
I'm having that same issue actually...it's working just fine on localhost but not on production. |
Build scripts are fine for me ... no error logging out on the build. When I inspect the element, it is just an empty div where the trigger/hover content should be. |
@dekkofilms are you using react-scripts like what @qxh5696 did in his project? |
No I'm not using those scripts ... we have our own build file that's running, which is running our webpack config:
Webpack Config for production:
|
thanks for this @dekkofilms , I will look into this issue.... meanwhile, if you found any root cause for this issue, don't forget to share with us... 👍 |
any update on this issue? |
@cht8687
but in production, the |
so I think that was the issue. The children elements name changes in production builds so the conditional will never resolve. I did something really janky as a workaround where i pass a prop called
|
@j4mesjung What do you think? or we can get rid of the child.type.name == 'Trigger' totally. |
I don't know anything about |
fixed #13 |
|
@stevemao it's for backwards compatible for those who used older version of this lib. |
@cht8687 The website provided is down. |
@ulnk |
I made use of React-Hover in a small project of mine and when I build a production version of my project, the elements using
react-hover
don't appear.Here is the link to my project, feel free to clone, change it, whatever:
https://github.com/qxh5696/dummy-react-project
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: