You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our React app started having problems mysteriously. No problems running locally with yarn start. The production build would complete successfully, but while running the app we get strange errors about things being undefined or used before initialization. It seems like somehow, caniuse-lite 1.0.30001561 is causing changes in the resulting code of our production builds.
For example, with 1.0.30001559, here is what a particular function looks like at run time:
This is from react-onclickoutside code, not ours. In the image above, you should see that handleClickOutside looks like a regular function with a prototype and constructor.
With the only change being caniuse-lite 1.0.30001561 instead of 1.0.30001559, the same function looks like this at run time:
In this version, handleClickOutside is represented as an arrow function and there is no prototype. This ends up resulting in errors like this:
At first, we thought the problem was with react-onclickoutside, but other parts of our app are also getting strange errors and I was able to narrow down that the issues started with the release of caniuse-lite 1.0.30001561. Is anybody else having issues like this?
The text was updated successfully, but these errors were encountered:
I am closing this issue since stacktrace doesn’t have browserslist or camiuse-lite and environment debugging is a commercial work and not a community help.
Our React app started having problems mysteriously. No problems running locally with yarn start. The production build would complete successfully, but while running the app we get strange errors about things being undefined or used before initialization. It seems like somehow, caniuse-lite 1.0.30001561 is causing changes in the resulting code of our production builds.
For example, with 1.0.30001559, here is what a particular function looks like at run time:
This is from react-onclickoutside code, not ours. In the image above, you should see that handleClickOutside looks like a regular function with a prototype and constructor.
With the only change being caniuse-lite 1.0.30001561 instead of 1.0.30001559, the same function looks like this at run time:
In this version, handleClickOutside is represented as an arrow function and there is no prototype. This ends up resulting in errors like this:
At first, we thought the problem was with react-onclickoutside, but other parts of our app are also getting strange errors and I was able to narrow down that the issues started with the release of caniuse-lite 1.0.30001561. Is anybody else having issues like this?
The text was updated successfully, but these errors were encountered: