Skip to content

"Maximum regex stack depth reached" when hot realoads with Expo #82

@fabrizioiacobucci

Description

@fabrizioiacobucci

Hello,

I have this issue while using the library into an Expo project.

I have the following in my _layout file which is the entry point for Expo Router:

import "@/global.css";
import { StatusBar } from "expo-status-bar";
import Providers from "@components/providers";
import useLoadApp from "@/src/hooks/useLoadApp";
import { useTheme } from "@/src/hooks/useTheme";
import { Slot, SplashScreen } from "expo-router";
import { useCallback } from "react";
import { View } from "react-native";
import * as ExpoImage from "expo-image";
import { FileLogger } from "react-native-file-logger";

FileLogger.configure();

SplashScreen.preventAutoHideAsync();

export default function Layout() {
...

It works fine, but when I do any change in the code which triggers a hot reload in Metro then I receive the mentioned error:

Image

I know 100% that, because when I remove the FileLogger.configure row it works fine also on hot reload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions