question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'current' of undefined.

See original GitHub issue

Here 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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
mrsvtcommented, May 16, 2019

React and React DOM must be at least 16.8.0 https://github.com/FormidableLabs/react-ssr-prepass/pull/5

0reactions
kittencommented, Jul 23, 2019

Sorry 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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found