Skip to content

Conversation

@AlaricBaraou
Copy link
Contributor

Fix: #3593

Since react 19 and our v9, the React DevTools didn't work in the context of r3f.
We'd get things like

noProfilingRecorded

And this error
504814709-f09fc062-319a-43ef-98ec-08121c594904

After some digging, turns out injectIntoDevTools is not the correct way to pass the DevTools config anymore. It changed in that PR https://github.com/facebook/react/pull/30522/files

bundleType is handled automatically for us so we just have to move rendererPackageName and rendererVersion to the config passed to createReconciler.

I believe that DefinitelyTyped is not up to date yet so my PR won't pass ts check I guess https://github.com/search?q=repo%3ADefinitelyTyped%2FDefinitelyTyped%20rendererPackageName&type=code
I'll check how can this be updated.

After this change I can use the DevTools again
soda

@codesandbox-ci
Copy link

codesandbox-ci bot commented Oct 27, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit b59d125:

Sandbox Source
example Configuration

@busybox11
Copy link

busybox11 commented Nov 28, 2025

Just spent a lot of time trying to debug this error without seeing anything similar before, and came to a similar conclusion. Felt alone for a while lol.


EDIT: Ignore what I just said. Misread and didn't realize I was focused on the wrong version. Thanks for the PR haha

@CodyJasonBennett CodyJasonBennett changed the title Pass DevTools config through createReconciler to fix React DevTools fix: pass DevTools config through createReconciler to fix React DevTools Nov 28, 2025
@CodyJasonBennett CodyJasonBennett merged commit 1e676dc into pmndrs:master Nov 29, 2025
2 checks passed
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

Successfully merging this pull request may close these issues.

Broken React Dev Tools

4 participants