[Typo]: Cannot debug the react source code through 'babel-standalone/dev.html' file
未關閉
還沒有人認領這個 Issue。
type: typos
- 主要語言
- JavaScript
- 星號
- 11.8k
- 分支
- 7.9k
- 平均合併
- 1 天 11 小時
- 30 天內合併 PR
- 11
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
先從 legacy.reactjs.org/docs/how-to-contribute.html 中的貢獻指南以及其中參照的 fixtures/packaging/babel-standalone/dev.html 檔案開始,然後重現文件中記載的 yarn build 和瀏覽器主控台錯誤。完成的條件是,文件中的原始碼偵錯步驟與目前的建置輸出一致,且不再導致缺少 React 或 ReactDOM 檔案。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- javascript, react
- 領域
- documentation
- Issue 類型
- 文件
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100