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

[DevTools Bug]: Script tag connection method not working in 6.0.0 #31100

Closed
MMMartt opened this issue Sep 30, 2024 · 1 comment · Fixed by #31102
Closed

[DevTools Bug]: Script tag connection method not working in 6.0.0 #31100

MMMartt opened this issue Sep 30, 2024 · 1 comment · Fixed by #31102
Assignees
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug

Comments

@MMMartt
Copy link

MMMartt commented Sep 30, 2024

Website or app

A basic Create React App project with React DevTools connected via script tag.

Repro steps

  1. Install React DevTools globally: npm install -g react-devtools or yarn global add react-devtools
  2. Create a new React app: npx create-react-app my-app
  3. Navigate to the project directory: cd my-app
  4. Open public/index.html and add the following script tag at the beginning of head tag:
    <script src="http://localhost:8097"></script>
  5. Start the development server: npm start or yarn start
  6. In a separate terminal, start React DevTools: react-devtools
  7. Open the app in a browser and check the console for any connection errors

This bug happens consistently when following the repro steps above. It occurs with the recently released React DevTools version 6.0.0, while it worked correctly in the previous version.

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

@MMMartt MMMartt added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Sep 30, 2024
@hoxyq
Copy link
Contributor

hoxyq commented Sep 30, 2024

Hey @MMMartt, thanks for opening this issue and providing a repro.

I found an issue and will put up a fix soon, this should be available in 6.0.1 in a week or two. Before it, please continue using version 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants