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.

Uncaught TypeError: Cannot call a class as a function

See original GitHub issue

I seem to be getting this error when using 1.0.4:

classCallCheck.js:7 Uncaught TypeError: Cannot call a class as a function
    at push../node_modules/babel-runtime/helpers/classCallCheck.js.exports.default (classCallCheck.js:7)
    at AsyncScriptLoader (async-script-loader.js:58)
    at Object../node_modules/react-google-recaptcha/lib/recaptcha-wrapper.js (recaptcha-wrapper.js:33)
    at __webpack_require__ (bootstrap:782)
    at fn (bootstrap:150)
    at Object.<anonymous> (PasswordResetPage.jsx:5)
    at Object../client/src/components/PasswordResetPage.jsx (app.bundle.js:9425)
    at __webpack_require__ (bootstrap:782)
    at fn (bootstrap:150)
    at Object.<anonymous> (AppWrapperNotLoggedIn.jsx:6)

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ahnkeecommented, Oct 4, 2018

I think it’s unrelated to the usage. I removed everything from the problematic component until only the ReCaptcha is being rendered essentially.

There are a number of babel transforms so definitely could be one of those. Going to spend some time tomorrow debugging – will report back if I figure it out.

0reactions
joetideecommented, Oct 4, 2018

also what version of react?

16.4.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting "Cannot call a class as a function" in my React Project
The most likely issue is that you're missing the new keyword somewhere, just like I did above. What this means is you don't...
Read more >
TypeError: Cannot call a class as a function - Get Help
Everything works fine on localhost by running npm run dev. But I got this error on the server: TypeError: Cannot call a class...
Read more >
[ERROR] Cannot call a class as a function · Issue #502 - GitHub
Hey everyone. In my Expo App, I am fetching the clientSecret from my paymentIntents endpoint. I get my clientSecret but when i pass...
Read more >
Getting JS error: "Cannot call a class as a function" : r/reactjs
Now, I want to replicate the react-vis code in this older version of react app. While doing so I face following error: Uncaught...
Read more >
Cannot call a class as a function sweetalert2.min.js?ver=1:1
Uncaught TypeError : Cannot call a class as a function sweetalert2.min.js?ver=1:1 ... Hi, I am getting this console error whenever I try run...
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