React-devtools: Uncaught ReferenceError: performanceNow is not defined

Created on 29 Apr 2017  路  7Comments  路  Source: facebook/react-devtools

After hours of pulling my hair I found that React developer tools causes a referenceError on sites using Relay. Check example No idea why, but haven't experienced this issue before today.

Image of error

Most helpful comment

@gaearon thanks for the fast reaction! It is indeed fixed in 2.1.3.
In the meantime until all plugins are updated, we btw use this small workaround:
https://github.com/csnover/TraceKit
and

TraceKit.report.subscribe((error) => {
  if (error.message === 'performanceNow is not defined') {
    alert(
      'The console cannot start because you are using React Devtools, '
      + 'which have a problem with Relay at the moment. '
      + 'Please disable React Devtools. If that doesn\'t help, please '
      + 'consult us in Slack. Thanks for your understanding.',
    )
  }
})

All 7 comments

This is affecting us too. No one with react dev tools installed can use our site :(

Confirm that I'm getting this as well, looks like something broke in the last release.

Like @wietsedevries I'm using Relay so perhaps related to that.

Same here. We're using Relay 0.9.3. Also no one with dev tools can use our app anymore :/

I'm sorry about that, I screwed up. The issue was fixed in latest update (released about 30 hours ago) so the issue will go away when people's addon gets updated. Chrome does this automatically.

Can you verify that your sites work with React DevTools 2.1.3 (latest version)?

Going to close this as I assume they do, but let me know if not!

@gaearon thanks for the fast reaction! It is indeed fixed in 2.1.3.
In the meantime until all plugins are updated, we btw use this small workaround:
https://github.com/csnover/TraceKit
and

TraceKit.report.subscribe((error) => {
  if (error.message === 'performanceNow is not defined') {
    alert(
      'The console cannot start because you are using React Devtools, '
      + 'which have a problem with Relay at the moment. '
      + 'Please disable React Devtools. If that doesn\'t help, please '
      + 'consult us in Slack. Thanks for your understanding.',
    )
  }
})
Was this page helpful?
0 / 5 - 0 ratings

Related issues

nareshbhatia picture nareshbhatia  路  3Comments

bvaughn picture bvaughn  路  4Comments

zhammer picture zhammer  路  4Comments

mmahalwy picture mmahalwy  路  3Comments

txiaocao picture txiaocao  路  5Comments