-
Notifications
You must be signed in to change notification settings - Fork 115
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
Cannot find React #134
Comments
Hi @xero88, thanks for giving React Sight a try. Our general error message means that React-Sight wasn't able to inject it's rendering patch into the React code. Ideally, when the dev tools are opened, React Sight will find the root div that React renders to, and patch the render function. However, if React-Sight can't find the render function, it will 'wait' for a render event to fire, and then patch the code from there. If you can trigger a re-render (eg props change, state change, route change, redux change) while React-Sight is opened, it should hopefully fix the problem. Unfortunately, you can't manually call the setState() function in the console - it's internal to the React library |
hello; i've tried triggering re-renders within my app and have done so several ways but react-sight is still unable to latch on. is there any method you'd recommend to help debugging this, or perhaps where to look to find out more information? |
This is an identical issue that React dev tools has, my solution to this when I get it is to change routes, maybe go to the main view of the app and refresh there, or just try to refresh the app on different views other than where you are currently. So after you find a route that worked and react dev tools or sight loads, then you can navigate to the original route where you had this problem and then you can view it without issues. |
I can't get this library to find any react project, even basic CRA projects in 14, 15, 16. Is there a specific hook I'm missing that's not in the docs? have react Dev Tools > install extension > run React app |
@ChristianDavis are you able to see your app in react-dev-tools? Does triggering a setState / re-render cause it to show up in either extensions? If you have a test repo that replicates this I can take a look at it |
Yeah, If you download and run the example app, https://github.com/react-boilerplate/react-boilerplate, react dev tools works and react-sight stays on the Cannot find React message. I'm on latest Chrome, 66.0.3359.181 |
Im getting the same on my React 16.3 project. Chrome 67.0.33. React dev tools working fine. |
@davidcsally btw, love the idea of the graph display. We use graphs as data structures in a number of projects, not always visualized. If you need help figuring out what's going on, let me know. I'm excited to try it out |
I'm getting the same issue with React 15.6. |
Same here using React 16.3.1 |
Same problem here, react dev tools works, React-Sight giving me cannot find react. react 16.4.2 and latest chrome on mac |
Same issue with react 16.4.2 and latest chrome on mac |
Yup, same here. |
Exact same situation for me. React 16.4.2, React-dev-tools work, and also running on chrome |
Exact same situation for me. React 16.5.2, React-dev-tools work, and also running on chrome |
same issue, using react 16.5.2, and a working react-dev-tools... |
Yes, react dev tools is working for me as well
…On Sat, Oct 6, 2018, 19:37 Naji Sawas ***@***.***> wrote:
same issue, using react 16.5.2, and a working react-dev-tools...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE64MNiBMPi85gn__pVgfizmPMdvkPvkks5uiOpsgaJpZM4Tftem>
.
|
the same issue, using react 16.6.3, react-dev-tools work |
the same issue,using react 16.6.3 React-Sight |
Maybe the replacement could be added to labs meanwhile?
…On Fri, Dec 7, 2018, 09:36 sky_rainbow ***@***.*** wrote:
the same issue,using react 16.6.3 React-Sight
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE64MDV_rSXoXtCHhaRa1rbnZR_pUNVCks5u2ih_gaJpZM4Tftem>
.
|
Hi all, unfortunately it looks like its no longer working in React ~16.6.3. We built this out using "experimental" unstable under hood APIs in React. I would like to refactor our custom virtual DOM parser to simply accept the data from React DevTools, since that would do the heavy lifting for us, but I am not sure when I will have time. Possibly around the holidays. Sorry for the broken extension in the mean time. If you'd like to take a stab, please knock yourself out! |
Any update @davidcsally? |
It started to work when I navigated the app. Everything fine since then, thanks for the great project. |
Here it doesn't work, even on navigation. I'm using react 16.8.1 and not one class component for handling state or effects, it's hooks all the way. I'm still very excited to see this working!! |
Hey everyone, sorry for stringing ya'll along. I don't really have the time to maintain this anymore. If anyone is interested in talking a look, feel free to @ me and we can figure out a way to collaborate. I'm happy to help anyone that would like to contribute. |
@davidcsally Thank you for all the work you've done so far. ❤️ |
@davidcsally Is this project no longer maintained? |
@michaelcmelton it's no longer maintained :( |
Since this isn't maintained and doesn't work, I suggest marking the repo and extension as such to avoid wasting people's time setting it up. |
is there any alternative tool? PLEASE |
@davidcsally What would it take to get this put back online?? |
@davidcsally To clarify, I’m interesting in collaborating and helping contribute to get this extension back usable again. |
same issue |
same issue. subscribed. |
same issue. Chrome Version 78.0.3904.108, React v16 |
Would be nice if the project's readme explained that it doesn't work. 30 minutes of my life wasted. Using Chrome Version 78.0.3904.108 and React 16.10.1 |
That project saved millions of minutes of developers' lifetime when it was working so I guess the way that you say 30 minutes of yours was wasted is a bit mean, though, I totally agree that they need to report it on the website as well. |
this extension no longer works |
Stay tuned! I actually fixed it here #147 |
React-Sight is back! This should make the extenstion *actually* useable again! It's not perfect, and there are still bugs, but it will actually do something. Lots of big changes here: - Fix communication issues between background script, content script, and browser tab. - Fix communication issues with react-devtools extension. - Revamp build system. Why did we even set it up to transpile to es5 in the first place? - Upgrade all dependencies. This one is for everyone that commented "not working" in the following threads: #134 #145
React-Sight is back! This should make the extenstion *actually* useable again! It's not perfect, and there are still bugs, but it will actually do something. By updating the webpack configuration, dependencies, and imports, we were able to shave the file size down by 12% (40kb)! Lots of big changes here: - Fix communication issues between background script, content script, and browser tab. - Fix communication issues with react-devtools extension. - Revamp build system. Why did we even set it up to transpile to es5 in the first place? - React sight is now - Upgrade all dependencies. This one is for everyone that commented "not working" in the following threads: #134 #145
It's lit 🔥Still some bugs to work through, but it works again! Version 1.1.0 has been published to the Chrome webstore, so hopefully it will be released soon! In the meantime, I will make the documentation clear on how to build your own version of this from this repository. It's actually really easy! See - #176 |
For anyone that wants to try this out now, I've update the instructions for building the extension locally! #177 |
I’ve also ported the fixed version to Firefox, where the new version is now live! Available here: https://addons.mozilla.org/en-US/firefox/addon/react-sight/ |
@davidcsally I am still getting the same error. Tried navigating to different views as well, but no luck. |
@davidcsally getting the same "Cannot find React" error...tried different things...but to no avail |
There are things that never change 😄 Looks like Cannot find React is one of them |
Sorry I haven't been too responsive, I think the core problem here for so many people is that this doesn't work on many server side rendering setups, specifically things like gatsby or react-snap. I am pretty sure this works on all client rendered applications. I'm going to update the readme and in app error message to say something along the lines of :
|
OK so with this bay area quarantine I've actually started looking into this. The root cause is the janky cloning method I am using to send data from the window to the chrome extension: (see I am pretty sure the problem for everyone here is this: I noticed that the |
OK I am pretty sure I fixed this, there were two major bugs:
I fixed 1. by wrapping in a try/catch, and 2. by using the circular package to filter out circular references. I've tested this on a few different websites that it wasn't working on previously, and it worked! Expect a PR soon! |
Should be fixed here: #202 I'll post another update when its published on the chrome / FF stores |
New version up for firefox: https://addons.mozilla.org/en-US/firefox/addon/react-sight/ Chrome bundle has been uploaded but will probably take a few days to pass review |
I got : 'Cannot find React', I tried to enter 'setState()' in console, but I got :
Am I doing something wrong ?
The text was updated successfully, but these errors were encountered: