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
We've deployed to our staging environment code that uses react-archer for the first time and are experiencing the following (breaking) error:
Uncaught TypeError: Super expression must either be null or a function
at 3.eaf63c57.chunk.js:412
...
...
(the error is not present while working locally)
After extensive investigation, we were able to narrow down the issue to webpack minification, i.e. the error no longer appears (and the web app runs properly) when we add minimize: false under optimization (in webpack.config.js).
We don't want to disable minification globally, so now we are trying to disable it only on the code that uses react-archer.
Are you familiar with this minification issue? Relevant solutions?
We're using react 16.9.0 with webpack 4.3.2.
Thanks,
Dima.
The text was updated successfully, but these errors were encountered:
Hey @dimapx, I ran into the same issue when I worked on this library some time ago. Some part of a solution can be found in #24.
If you feel like debugging Uglify/Terser and why ECMAScript JS does not spit out equivalent JS, then go for it. However, the libraries are in fact very poor architecturally, the bundle size gains are minimal, and the community is hostile. Optimizing function calls at runtime is something that the engines do much better than we ever could in user space, so I highly recommend disabling function inlining and moving on with your life.
Hey @pierpo,
We've deployed to our staging environment code that uses react-archer for the first time and are experiencing the following (breaking) error:
(the error is not present while working locally)
After extensive investigation, we were able to narrow down the issue to webpack minification, i.e. the error no longer appears (and the web app runs properly) when we add
minimize: false
underoptimization
(inwebpack.config.js
).We don't want to disable minification globally, so now we are trying to disable it only on the code that uses react-archer.
Are you familiar with this minification issue? Relevant solutions?
We're using react
16.9.0
with webpack4.3.2
.Thanks,
Dima.
The text was updated successfully, but these errors were encountered: