Cannot read property 'render' of undefined
See original GitHub issueAbout 1 in 100 students are not able to load react-dom off their local file system.
If you are seeing “React is not rendered” in your index.html file with getting the “Cannot read property ‘render’ of undefined” error, that means the react-dom script is not loading from your npm_modules directory.
The patch for this fix if it’s happening to you, is to load the file off the network vs locally through unpkg:
<script src="https://unpkg.com/react-dom@15/dist/react-dom.js"></script>
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
ReactDOM.render Cannot read property - Stack Overflow
I'm use webpack , webpack-dev-server and es6 . My react and react-dom is up to date. I have no idea about how to...
Read more >Why is it saying cannot read property 'render' of undefined?
I just start a new project and can't seem to figure out why I'm getting cannot read property 'render of undefined.
Read more >Error: TypeError: Cannot read property 'render' of undefined #64
Npm run build successfully.I have a problem while rendering.I have no idea about the reason cause it.Could someone help me to check.
Read more >cannot read properties of undefined (reading 'render') - You.com
Your useEffect needs data in it's dependency array for it to trigger a rerender based on data . Also, you'll need if (!data)...
Read more >Reactjs – Cannot read property 'render' of undefined - iTecNote
Built JSX with JsxBundleConfig, used angular ngReact directives to render react within angular. Every time i tried to include a react-component, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@1Marc Doing
yarn add react-dom
fixed this problem and also allowedimport ReactDOM from 'react-dom'
to work properly with webpack.Uncaught TypeError: Cannot read property ‘render’ of undefined at Object.parcelRequire.App.js.react (App.js:30) at newRequire (App.d36a57b6.js:47) at App.d36a57b6.js:81 at App.d36a57b6.js:120
###This is the error/