Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[React Compiler]: Crash when using react-compiler in release build #809

Open
FightFarewellFearless opened this issue Feb 2, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@FightFarewellFearless
Copy link

Describe the bug
The application is crashed when using react-compiler with release build (somehow it works on debug build).
Still crashed even if "use no memo" is added.
Maybe this is caused by @jsamr/react-native-li used in this lib, which is 3 years old with no update.

To Reproduce

  1. Setup react-compiler, i'm following the guide in the expo docs, because i'm using expo bare workflow
  2. Build the application in release build

Reproducible Code

import Markdown from "react-native-marked";
import CHANGELOG from "../../../../CHANGELOG.md";

export default function Changelog() {
    "use no memo";
    return (
        <Markdown
            value={CHANGELOG}
        />
    )
}

and here is my babel.config.js

const ReactCompilerConfig = {
  target: '18', // '17' | '18' | '19'
  sources: (filename) => {
    return filename.includes('src/component');
  },
};

module.exports = {
  presets: [
    ['babel-preset-expo', {
      'react-compiler': ReactCompilerConfig
    }]
  ],
  // eslint-disable-next-line prettier/prettier
  plugins: [
    ['module:react-native-dotenv'],
    [
      "babel-plugin-inline-import",
      {
        "extensions": [".md", ".txt"]
      }
    ],
    'react-native-reanimated/plugin',
  ],
};

Expected behavior
Expected to working fine

  • React Native Version:
    0.77

  • react-native-marked Version:
    6.0.7

  • Platform:
    Android

Additional context
Here is the log

log

02-02 17:23:22.241 7180 7222 E ReactNativeJS: TypeError: undefined is not a function
02-02 17:23:22.241 7180 7222 E ReactNativeJS:
02-02 17:23:22.241 7180 7222 E ReactNativeJS: This error is located at:
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MarkedListItem
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in VirtualizedListCellContextProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CellRenderer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTScrollView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in ScrollView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Wrapper
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in VirtualizedListContextProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in VirtualizedList
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in FlatList
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Markdown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Changelog
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StaticContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in EnsureSingleNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SceneView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CardSheet
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PanGestureHandler
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PanGestureHandler
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Card
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CardContainerInner
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNSScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Suspender
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Suspense
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Freeze
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in DelayedFreeze
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in InnerScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MaybeScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNSScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in ScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MaybeScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CardStack
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SafeAreaProviderCompat
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNGestureHandlerRootView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in GestureHandlerRootView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StackView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PreventRemoveProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in NavigationContent
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StackNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Utils
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StaticContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in EnsureSingleNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SceneView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Background
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Screen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNSScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Suspender
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Suspense
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Freeze
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in DelayedFreeze
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in InnerScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MaybeScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNSScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in ScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MaybeScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SafeAreaProviderCompat
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in BottomTabView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PreventRemoveProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in NavigationContent
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in BottomTabNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in BottomTabs
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StaticContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in EnsureSingleNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SceneView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CardSheet
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PanGestureHandler
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PanGestureHandler
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Card
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CardContainerInner
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNSScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Suspender
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Suspense
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Freeze
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in DelayedFreeze
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in InnerScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MaybeScreen
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNSScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in ScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in MaybeScreenContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in CardStack
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNCSafeAreaProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SafeAreaProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in SafeAreaProviderCompat
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNGestureHandlerRootView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in GestureHandlerRootView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StackView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in PreventRemoveProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in NavigationContent
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in StackNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Provider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in ThemeProvider
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in EnsureSingleNavigator
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in BaseNavigationContainer
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in NavigationContainerInner
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RNGestureHandlerRootView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in GestureHandlerRootView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in App
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in RCTView
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in Unknown
02-02 17:23:22.241 7180 7222 E ReactNativeJS: in AppContainer

@FightFarewellFearless FightFarewellFearless added the bug Something isn't working label Feb 2, 2025
@gmsgowtham
Copy link
Owner

I'll check it

@FightFarewellFearless
Copy link
Author

I'll check it

Thank you, make sure there are lists in the markdown to reproduce the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants