[Typo]: Cannot debug the react source code through 'babel-standalone/dev.html' file
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con le istruzioni per contribuire disponibili all’indirizzo legacy.reactjs.org/docs/how-to-contribute.html e con il file referenziato fixtures/packaging/babel-standalone/dev.html, quindi riproduci gli errori documentati di yarn build e della console del browser. Il lavoro è completato quando i passaggi della documentazione per il debugging del codice sorgente corrispondono all’output della build attuale e non portano più a file React o ReactDOM mancanti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100