Rollbar got javascript error that's not related to the code - reactjs

Not sure if somebody ever experiencing this.
I use Rollbar for collecting error from front-end React project.
But i got some strange error like...
132 TypeError: undefined is not an object (evaluating 'document.getElementsByName('emailconfirm_1')[0].value = ''')
the strange part is that, i don't have any of emailconfirm object in my code at all.
i grep this name to my whole project directory, including built assets, but can't find any...
Can somebody think of the possibility that could make this happen? it's just looks so weird to me.

Related

pns_confirmRegex of undefined

I'm running a deployment to heroku, I'm unable to produce this locally, but I'm getting this error:
Uncaught TypeError: Cannot read property 'pns_confirmRegex' of undefined
at Object.i [as check] (h1.js:150)
at HTMLDocument.<anonymous> (h1.js:62)
at l (h1.js:48)
at c (h1.js:48)
Like I know there's an undefined item somewhere... and if you look at the sources, it's coming from something of h1.js .
I'm using react with some service workers in the front-end and they are all transpiled together with webpack. Does anyone have any idea what this might be?
Check the stack trace very carefully and you should see that this probably has to do with https://github.com/facebook/react-devtools/issues/461.
I had the same error and uninstalled Honey. If you click on the links in the stack trace you should be able to look at the code and see a bunch of Regex selectors that Honey seems to employ.
Disable Honey Chrome extension and cures the issue. Thank you Yehuda M. Makarov

Copied working app, but "Uncaught ReferenceError: angular is not defined(…)"

I am afraid that I can't post code, as there is too much of, but am hoping that someone will recognize my problem.
I have an existing, working app, which I want to use as the basis for a new one.
So, I copied all of localhost/<some directory>/App1 to localhost/<some directory>/App2, but when I try to load the app, I get Uncaught ReferenceError: angular is not defined(…)
I just don't understand it. I have copied the entire directory and changed nothing. The first app still works fine, but the copy gives that error.
Any idea what I am doing wrongly?

camerapreview plugin is not found by my angular js app

So I have yet another problem with my home application. I am trying to get a live preview image directly on my html page. I am using VS Community and I linked to https://github.com/mbppower/CordovaCameraPreview.git to download the right repository. VS then tells me I have downloaded it. However, when I try to plug the line:
cordova.plugins.camerapreview.startCamera(rect, "front", tapEnabled, dragEnabled, toBack)
I get back an error in my javascript which reads as follows:
Cannot read property 'camerapreview' of undefined
I am following the orders of the github post to the letter but I am still getting an error. Any help in solving this problem will be greatly appreciated!
The error message
Cannot read property 'camerapreview' of undefined
tells you that in this statement:
cordova.plugins.camerapreview.startCamera(rect, ...
cordova.plugins is not defined - that's where you need to look.

Getting useful errors from Typescript/Angular2

I am working through the Angular2 TypeScript Heroes tutorial. At some point we actively create an error. Basically the tutorial asks to write some html that calls an undefined variable. It indicates that my console should show:
EXCEPTION: TypeError: Cannot read property 'name' of undefined in [null]
However what I get in Safari and Chromium is about 500 lines of stack dumps (This is one page load and it triggered 17 errors!)
I have run through the tutorial from install exactly so my setup should be correct. How can I get a cleaner error? I can infer the issue for sure but I'd rather not have 500 lines of errors for every typo I do. Could end up crashing my browser :)
I am new to TS so perhaps there is a setting I need to adjust some debug setting?

Sencha Command + Error evaluating http://localhost/Production/app.js with message: TypeError: Cannot call method 'substring' of undefined

Im here trying to find out how to solve this little problem.
I've been working with Sencha Touch v2.1 to create all my views and stuff.
After that, i started working with Sencha Command v3.0.0.250 to improved performance in my app, but after Sencha C. do its own business and try to open the index.html (throw IIS) something like that occurrs. (using chrome)
"Error evaluating http:// localhost/Production/app.js with message: TypeError: Cannot call method 'substring' of undefined "
Whats going on? What substring is talking about?
Thanks in advance!
Ensure that you see no warning messages in the Console since you have to add requires following by the classes you will be using before building it.

Resources