minify problem.

Hi,
I just build an app. When it’s on debug mode , it works fine.
but I just export to our file server , build an apk file for production and it just crash.
the error was got from sentry.

Error: TypeError: TypeError: r is not a function. (In 'r(d[22])', 'r' is an instance of Object)

This error is located at:
    in n
    in Connect(n)
    in p
    in RCTView
    in f
    in RCTView
    in f
    in C
    in n
    in P
    in RCTView
    in n
    in RCTView
    in f
    in b
    in y
    in L
    in RCTView
    in _
    in C
    in P
    in v
    in k
    in RCTView
    in l
    in Styled(l)
    in n
    in Connect(n)
    in o
    in Unknown
    in v
    in RCTView
    in RCTView
    in c

so I go back to develop mode using --minify and got the same error.
Is there any problem in minify?

expo 32.0.6
expo-cli 2.16.1
uglify-es 3.3.10

Hm that’s weird.

If you run expo start --no-minify, then you don’t get the error?

Not entirely sure what could cause this, before I’ve seen a similar error message (not exactly the same), and it ended up being a problem in the code.

Could you run it with EXPO_DEBUG=true to see the stack trace?

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.