Replies: 1 comment 6 replies
-
That's really curious. I did some build changes due to monorepo migration, but nothing too serious that could cause something like that. It seems like some problem in mobx-react, because when I use |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have a project using react+typescript+mobx, and builds were fine with
mobx-react:7.0.0
(and dependencymobx-react-lite:3.0.1
).However, after upgrading to
mobs-react:7.0.4
andmobx-react-lite:3.1.5
, production builds contain what looks like invalid JS output.As an example, I created this repository: https://github.com/evilfer/mobx-react-lite-test-build.
In there, https://github.com/evilfer/mobx-react-lite-test-build/blob/master/dist-mf704-mrl315/mrl.a6b78398.js is the JS output with
mobs-react:7.0.4
andmobx-react-lite:3.1.5
. The output includes in four places this code:{}()
which fails to run with error "{} is not a function".The same project build with versions
mobx-react:7.0.0
andmobx-react-lite:3.0.1
has correct output https://github.com/evilfer/mobx-react-lite-test-build/blob/master/dist-mr700-mrl301/mrl.5d4eb783.js, without any case of{}()
.Am I missing some configuration change that is needed with the latest mobx-react/mobx-react-lite versions?
Beta Was this translation helpful? Give feedback.
All reactions