Cannot read property 'current' of undefined.
See original GitHub issueHere is the error:
TypeError: Cannot read property 'current' of undefined at Object.<anonymous> (/home/thuan/Desktop/thotot/main/node_modules/react-ssr-prepass/dist/react-ssr-prepass.development.js:842:45) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Module.require (module.js:596:17) at require (internal/module.js:11:18) at Object.<anonymous> (/home/thuan/Desktop/thotot/main/node_modules/react-ssr-prepass/index.js:4:20) at Module._compile (module.js:652:30)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
TypeError: Cannot read property 'current' of undefined #151
It throw an error saying it can not read property 'current'. I searched most places and I didn't see anyone else getting the...
Read more >Gatsby test error, TypeError: Cannot read property 'current' of ...
TypeError : Cannot read property 'current' of undefined. This is the code under test: import React, { Component } from 'react'; import ...
Read more >creating a unit test typeerror: cannot read property ... - You.com
It is complaining that cannot read property 'replace' of undefined. replace is a method of String in JS and instead it found undefined...
Read more >How to Read React Errors (fix 'Cannot read property of ...
This error usually means you're trying to use .map on an array, but that array isn't defined yet. That's often because the array...
Read more >Writing truly reusable React hooks, one test at a time
TypeError : Cannot read property 'location' of undefined. Makes sense. In order for our hook to work, we need to surround any of...
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 Free
Top 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
React and React DOM must be at least
16.8.0
https://github.com/FormidableLabs/react-ssr-prepass/pull/5Sorry for the late reply. As indicated in the last comment, react must at least be at
16.8
https://github.com/FormidableLabs/react-ssr-prepass/blob/master/package.json#L60-L61