I have no clue where to debug seeing the error like this
React did not tell which file to look for. I was playing around with this code https://github.com/atulmy/node-express-react-redux-zwitter
Related
I have a React Frontend Project that works correctly with npm start - the frontend works as expected when I run it this way.
However, when I npm run build and then serve the file with express, the frontend fails. The frontend doesn't load in my browser and I see the error: Uncaught TypeError: l[e] is undefined on Firefox and Uncaught TypeError: Cannot read property 'call' of undefined on Chrome.
The stack trace associated with those errors isn't very helpful as it just directs to chunk.js. I need to somehow figure out what's causing this issue. My boss suggested someone else working on the project likely made a coding error and we'll have to clean up everything to debug (this setup was working a week ago). Is there anything I can do to debug this short of going through every line of code?
Thank you!
I am working on a React project and I am trying to debug certain features. I've noticed when I get an error and I inspect it in Chrome DevTools, it only shows error in main.js:82145. As you can see this is the js file for the entire project (error occurs on line 82145). This is quite difficult to debug. When you normally run a React project and an error occurs, it tells you in which file specifically it occurs. For instance AddUser.js:52. My question is what the reason will be why my current project doesn't show the exact file? The project uses Grunt and the only thing I can think of is that it compiles to a main.js file and doesn't "know" about the rest of the files but only the main.js.
Here is a screenshot of my current error:
react_devtools_backend.js:2273 Invariant Violation: Minified React error #152; visit http://reactjs.org/docs/error-decoder.html?invariant=152&args[]=t for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
This issue doesn't come when I run project localy but after deploying code on AWS server this issues can be seen in console.
Please help, and one thing more How can I debug this issue locally?
This means nothing was returned from render, return statement is missing
Error: "java.lang.Double cannot be cast to java.lang.String"
This error doesn't occur when we install and run .ipa file but it throws this error for android. And I don't even know which part of my React Native code is it throwing the error for!!!
Can someone please help me to find which part of my code is throwing this error??
How to debug this??
If open this error in the browser there is the next piece of code:
return this.isMounted&&n&&(t.mount(this.node),this._emitter.emit(A,t.node))
so the error on the t.mount(this.node)
It is minified React code. It's obvious that it does not tell nothing, so I went to build folder and searched for ".mount(" and it found the next piece of code in .app.js file:
symbol.mount(sprite.node)
which looks like the pice of code with the error.
I google for symbol.mount typeerror, but could extract any useful suggestion.
Maybe someone encounter something similar or have and idea what could it be?
Additional info: there is no error when project is run locally (even when built locally), only when deployed on the remote server..