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

[Typo]: Cannot debug the react source code through 'babel-standalone/dev.html' file #6833

Open
QuinVon opened this issue May 4, 2024 · 2 comments

Comments

@QuinVon
Copy link

QuinVon commented May 4, 2024

Summary

Follow this link to debug the react source code yet failed:
https://legacy.reactjs.org/docs/how-to-contribute.html

Steps:
1). Make no changes to main branch and just run the yarn build command
2). Open the fixtures/packaging/babel-standalone/dev.html file which includes your changes, but meet the errors from browser console as below:

GET file:///Users/quinvon/Documents/GitHub/react/build/oss-experimental/react/umd/react.development.js net::ERR_FILE_NOT_FOUND
dev.html:4 
        
        
       GET file:///Users/quinvon/Documents/GitHub/react/build/oss-experimental/react-dom/umd/react-dom.development.js net::ERR_FILE_NOT_FOUND
babel.js:61666 You are using the in-browser Babel transformer. Be sure to precompile your scripts for production - https://babeljs.io/docs/setup/
runScripts @ babel.js:61666
transformScriptTags @ babel.js:336
(anonymous) @ babel.js:327
Inline Babel script:2 Uncaught ReferenceError: ReactDOM is not defined

I think your debug way of source code is out of date!

Page

https://legacy.reactjs.org/docs/how-to-contribute.html

Details

No response

@Rekl0w
Copy link
Contributor

Rekl0w commented May 4, 2024

image

There is a warning at the top of the page.

@QuinVon
Copy link
Author

QuinVon commented May 4, 2024

@Rekl0w, I saw it, and where's the new guidance about how to debug the source code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants