Closed rohit-rautt closed 1 year ago
Hi @rohit-rautt, it is difficult to debug this issue with the information provided. Are you able to provide a minimal repro of the issue that I can run?
I do not think this is a react-loading-skeleton issue, since the error is coming from Object.defineProperties
, and our code does not contain any calls to this function.
My one observation that may be useful is that it appears that your build process is transpiling the react-loading-skeleton code to target a lower ECMAScript version. This could be the source of the error. Normally, your build process would bundle a library's code, but not transpile it.
This is what i have observed Post transpilation this is converted to a function named 'G' and this var G clashes intermittently with defineProperties func
Nice job debugging that. As I said before, this seems like a problem with how your project is transpiling and minifying the react-loading-skeleton code.
We were able to resolve the issue 😄 . It seems that the problem was related to using different versions of JavaScript (ES) in our application.
Here's a breakdown of the steps we took to resolve the issue:
I'm getting below type error intermittently while using react skeleton loading in production. Unable to reproduce with dev build
To Reproduce It happens intermittently on page refresh or while navigating within app
Actual Behavior Page breaks with the console error mentioned above
Expected Behavior
Versions