Closed makarov906 closed 5 years ago
:( yesterday was a quite strange day.
Trying to reproduce the issue, and can't do it - https://codesandbox.io/s/react-focus-on-v3-jn3p7 (also tried with prod modes on localhost)
Error is reproducible only after production webpack build (dev mode is ok) and when using full import (import {FocusOn} from 'react-focus-on';
)
I was not able to break it from inside focus-on
, but when I used it as a package at third party side - 🔥
Now I could fix it!
The problem was with tree shaking of react-remove-scroll
, which was caused by a bug in webpack (yet to report).
I've update sideEffects
for said package to include sidecar
, and that's fixed the problem.
Should be ok now :)
Thank you for a quick fix :)
Thank you for beta testing :)
After upgrading i get the following error in production mode