skip to Main Content

"error: Error: 1:183:invalid expression" React Native Metro Bundle Hermes Error

Got the following metro bundling error (both for iOS and Android) after starting migration from React Native 0.66.0 to React Native 0.71.4 using this tool https://react-native-community.github.io/upgrade-helper/?from=0.66.0&to=0.71.4 error: Error: 1:183:invalid expression at module.exports.compile (/Users/nezort11/dev/walnuts/node_modules/metro-hermes-compiler/src/index.js:107:15) at _getPrelude (/Users/nezort11/dev/walnuts/node_modules/metro/src/lib/getPrependedScripts.js:99:21) at getPrependedScripts (/Users/nezort11/dev/walnuts/node_modules/metro/src/lib/getPrependedScripts.js:66:5) at…

VIEW QUESTION

Javascript – Why am I getting "ReferenceError: Property 'axios' doesn't exist, js engine: hermes" when I try to register a new user?

The part of the code that is causing the problem has the following syntax: import axios from "axios"; const handleLogin = () => { const user = { email:email, password:password, }; axios.post("http://localhost:8082/login", user).then((response) =>{ const token = response.data.token; AsyncStorage.setItem("authToken",token); router.replace("/(tabs)/home")…

VIEW QUESTION

iOS React Native Hermes not show in chrome inspect

I just upgrade my iOS RN from 0.63 to 0.65. Then enable hermes in podfile. I can start app normally, JSI is showing in developer menu, mean hermes is running. I follow exactly guide from https://reactnative.dev/docs/hermes#debugging-js-on-hermes-using-google-chromes-devtools But console.log code inside…

VIEW QUESTION

Enable hermes engine for ios: React native on Mac M1

After enabling hermes engine in podfile throws error while building app "Undefined symbols for architecture x86_64: "vtable for facebook::react::HermesExecutorFactory" Hermes version : 0.9.0 RN : 0.66.1 podfile platform :ios, '11.0' target 'OneSignalNotificationServiceExtension' do pod 'react-native-onesignal', :path => '../node_modules/react-native-onesignal' end target…

VIEW QUESTION

Xcode – Library not loaded: @rpath/hermes.framework/hermes

I have enabled Hermes in my react-native(v0.64) Application. Everytime I run app I get following stack trace. dyld: dyld cache load error: shared cache file open() failed dyld: Library not loaded: @rpath/hermes.framework/hermes Referenced from: /Users/sharktank/Library/Developer/CoreSimulator/Devices/A32F4931-51A8-4D22-AEFB-625F834CE221/data/Containers/Bundle/Application/71773888-08D5-4B82-9545-07F6B1538864/COSPM-DEV.app/COSPM-DEV Reason: image not found dyld:…

VIEW QUESTION

xcode archive "Library not found for -lReact-hermes" for ReactNative project

Trying to archive my RN project but having this error. Currently using RN 0.65.1 with React 17.0.2. Tried adding libReact-hermes.a inside xcode "Link Binary With Libraries" but error still persists. ld: library not found for -lReact-hermes require_relative '../node_modules/react-native/scripts/react_native_pods' require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'…

VIEW QUESTION
Back To Top
Search