segmentio / analytics-react-native

The hassle-free way to add analytics to your React-Native app.
https://segment.com/docs/sources/mobile/react-native/
MIT License
354 stars 181 forks source link

RCTFatalException: Unhandled JS Exception: TypeError: Super expression must either be null or a function, js engine: hermes #892

Closed efstathiosntonas closed 3 months ago

efstathiosntonas commented 8 months ago

Steps to reproduce

use version 2.17.0 and build a release variant, app insta crashes with:

RCTFatalException: Unhandled JS Exception: TypeError: Super expression must either be null or a function, js engine: hermes

downgrading to 2.16.1 solves the issue. When on debug variant it works fine, it only happens in release variant. Let me know if you need any additional info.

    "@babel/core": "^7.23.2",
    "@babel/preset-env": "7.23.2",
    "@babel/preset-typescript": "^7.23.2",
    "@babel/runtime": "^7.23.2",
    "typescript": "^5.2.2"
BenhurKulzer commented 8 months ago

Same error here, tryed to downgrade to older versions but still getting the error:

TypeError: Super expression must either be null or a function, js engine: hermes

efstathiosntonas commented 8 months ago

@BenhurKulzer make sure there's no ^ before the version on your package.json.

efstathiosntonas commented 8 months ago

Why issues are so slow in resolving them? This issue is breaking version 2.17 entirely and it's open for 8 days. Is a multi million company lacking resources on resolving issues fast? We're paying thousands of $ every single month and the support is terrible. Yes, it's open source but damn, you're making tons of money from it.

danielamorimp commented 7 months ago

I've been having the same problem for two weeks, it completely delays the releases. Did anyone manage to solve it?

BenhurKulzer commented 7 months ago

I've been having the same problem for two weeks, it completely delays the releases. Did anyone manage to solve it?

downgrading to older versions, like 2.16.1 or 2.14.0...

oscb commented 7 months ago

No good excuses why no one took a look at this during time off. Getting back here and looking at this.

oscb commented 7 months ago

Still checking. I have removed meanwhile the faulty version from NPM.

oscb commented 6 months ago

@BenhurKulzer @danielamorimp @efstathiosntonas Sorry for the lack of updates, we have been busy upgrading our tooling to 0.72+ to see if we could catch this but so far no luck. To be fair we're not deviating much from the defaults of a new RN app at each version we have tested (0.71.5, 0.72.6, 0.72.7). At this point we believe this might be caused by a common configuration we haven't tested. I'm thinking something along TS, Babel or RN configs/version combinations.

Any chance someone can share a minimal repro project? Or your project dependencies and configurations for babel, rn, typescript?

oscb commented 3 months ago

Fix is released in v2.19