Skip to content

Error: You attempted to set the key settings with the value {"infer_ip":"auto"} on an object that is meant to be immutable and has been frozen., js engine: hermes #5187

@DragomirAndrei19

Description

@DragomirAndrei19

What React Native libraries do you use?

React Native without Frameworks, React Navigation, Hermes

Are you using sentry.io or on-premise?

sentry.io (SaS)

@sentry/react-native SDK Version

7.1.0

How does your development environment look like?

⬇  Place the `npx react-native@latest info` output here. ⬇

System:
  OS: macOS 14.6.1
  CPU: (8) arm64 Apple M1 Pro
  Memory: 122.03 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 23.11.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.19
    path: /usr/local/bin/yarn
  npm:
    version: 10.9.2
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2025.04.28.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.16.2
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.2
      - iOS 18.2
      - macOS 15.2
      - tvOS 18.2
      - visionOS 2.2
      - watchOS 11.2
  Android SDK: Not Found
IDEs:
  Android Studio: Not Found
  Xcode:
    version: 16.2/16C5032a
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 24.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 18.0.0
    wanted: 18.0.0
  react:
    installed: 19.0.0
    wanted: 19.0.0
  react-native:
    installed: 0.79.6
    wanted: 0.79.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false


Sentry.init()

Sentry.init({
  dsn: APIConstants.SENTRY_URL,
  enabled: APIConstants.SENTRY_URL && !__DEV__ ? true : false,
  // spotlight: __DEV__,
  tracesSampleRate: 1.0,
  integrations: [navigationIntegration],
  sendDefaultPii: true
});

Steps to Reproduce

import MyApp from "MyApp";
import React, { useEffect } from "react";
import "./src/localization/i18n";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { SafeAreaProvider } from "react-native-safe-area-context";
import * as Sentry from "@sentry/react-native";
import APIConstants from "models/APIConstants/API_CONSTANTS";

export const navigationIntegration = Sentry.reactNavigationIntegration({
  enableTimeToInitialDisplay: true,
});

Sentry.init({
  dsn: APIConstants.SENTRY_URL,
  enabled: APIConstants.SENTRY_URL && !__DEV__ ? true : false,
  // spotlight: __DEV__,
  tracesSampleRate: 1.0,
  integrations: [navigationIntegration],
  sendDefaultPii: true
});
import { GoogleSignin } from "@react-native-google-signin/google-signin";
import { IOS_AUTH_CLIENTID, WEB_CLIENT_AUTH_ID } from "@env";
import { useThemeStore } from "zustand/themes/useThemeStore";
import { KeyboardProvider } from "react-native-keyboard-controller";

const App = () => {
  const backgroundColor = useThemeStore((state) => state.colors.background);

  useEffect(() => {
    configureGoogleSignin();
  }, []);

  const configureGoogleSignin = () => {
    GoogleSignin.configure({
      webClientId: WEB_CLIENT_AUTH_ID,
      iosClientId: IOS_AUTH_CLIENTID,
    });
  };

  return (
    <SafeAreaProvider style={{ flex: 1, backgroundColor: backgroundColor }}>
      <GestureHandlerRootView>
        <KeyboardProvider>
          <MyApp />
        </KeyboardProvider>
      </GestureHandlerRootView>
    </SafeAreaProvider>
  );
};

export default Sentry.wrap(App);

Expected Result

No error when modifying App.tsx while in development mode

Actual Result

Whenever I modify somethig inside App.tsx I get

Error: You attempted to set the key settingswith the value{"infer_ip":"auto"} on an object that is meant to be immutable and has been frozen., js engine: hermes

This wasn't happening prior to updating the library to version 7.x (From 6.x)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions