Uncaught TypeError: Cannot call a class as a function
See original GitHub issueI 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:
- Created 5 years ago
- Reactions:3
- Comments:10 (4 by maintainers)
Top 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 >
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
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.
16.4.1