-
-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Allow to opt-in React DOM profiling without ejecting #4990
Comments
Yeah we'll want to add this. In the meantime you can edit |
Got it. Thank you @gaearon for a quick reply! |
I'm having trouble getting the Profiling tools working in Chrome while using CRA start script via I'm also not sure why I'm getting the following message in the dev tools seeing that I'm using an adequate version of react (18.2.0 with react-scripts 5.0.1) and a non-production build (npm start).
Is there still a workaround to getting the profiling working locally or should this already be working out of the box? |
Interesting, I must have been hitting something different because after a bit of tinkering I tried removing the custom environment variables that I have set up for our project to set the PORT and HTTP variables and that seems to have allowed the profiler to work. Specifically it seems that setting PORT to a custom value of |
Is this a bug report?
No
Expected Behavior
CRA should be able to opt-in to React DOM profiling without ejecting.
Actual Behavior
Need to eject to enable React DOM profiling, as mentioned in https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977#create-react-app
The text was updated successfully, but these errors were encountered: