Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Cannot read property 'displayName' of undefined, js engine: hermes (React Native)

I am trying to build a React native mobile app, but it always presents the below error after which it has been completely built. I'm making use of TypeScript. I'm making use of Expo Cli and also I'm using react native version "react-native": "0.71.6". If I click on dismiss, it will dismiss the error and the app will load. Kindly help! I don't know what's wrong. It's not my code because before I started writing, it was showing this, just immediately I finished setting up Eslint and Prettier enter image description here

like image 721
Blessing Adeleke Avatar asked Oct 18 '25 23:10

Blessing Adeleke


1 Answers

I had the same issue. The problem for me was that I exported my App using named export. When changing it into a default export everything worked like it should.

like image 106
Anders Avatar answered Oct 20 '25 14:10

Anders