Skip to content

__reanimatedLoggerConfig #6839

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

Closed
hoantq19 opened this issue Dec 20, 2024 · 3 comments · Fixed by #6980
Closed

__reanimatedLoggerConfig #6839

hoantq19 opened this issue Dec 20, 2024 · 3 comments · Fixed by #6980
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android

Comments

@hoantq19
Copy link

Description

file logger.ts in node-module react-native renimate there is an error
Cannot find name '__reanimatedLoggerConfig'.t .How do i modify

Steps to reproduce

import Carousel from 'react-native-reanimated-carousel';

<Carousel
autoPlay={true}
loop={true}
autoPlayInterval={3000}
width={deviceWidth}
height={240}
data={[]}
onSnapToItem={(index) => {
this.setState({ activeSlide: index });
this.forceUpdate();
}}
renderItem={(item: { item: ImageHomeModel, index: Number }) => this.RenderImageHome(item.item)}
/>

Snack or a link to a repository

git

Reanimated version

3.6.1

React Native version

0.75.4

Platforms

Android

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

pixel 7a

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Missing repro This issue need minimum repro scenario labels Dec 20, 2024
Copy link

Hey! 👋

The issue doesn't seem to contain a minimal reproduction.

Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?

@tlow92
Copy link

tlow92 commented Dec 20, 2024

After upgrading to expo 52 I also received this error and took me a long time to figure out what caused it, because I could not reproduce it in an empty fresh project.

I had some configuration in metro.config.js (I think some leftover from past times where it was needed for react-native-skia web).

Can you check if you have one of the options activated?
Removing this piece fixed the issue for me.

config.transformer.getTransformOptions = async () => ({
  transform: {
    experimentalImportSupport: false,
    inlineRequires: true,
  },
});

@noumantahir
Copy link

I was facing this exact same issue after updating my reanimated package from 3.6 to 3.16 ..

wrapping my metro config with reanimated metro config resolved the issue for me

// metro.config.js
const {
  wrapWithReanimatedMetroConfig,
} = require('react-native-reanimated/metro-config');

const config = {
  // Your existing Metro configuration options
};

module.exports = wrapWithReanimatedMetroConfig(config);

ref: https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/getting-started#step-3-wrap-metro-config-with-reanimated-wrapper-recommended

@tjzel tjzel linked a pull request Feb 5, 2025 that will close this issue
github-merge-queue bot pushed a commit that referenced this issue Feb 5, 2025
## Summary

Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

## Test plan

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
tjzel added a commit that referenced this issue Feb 17, 2025
Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
tjzel added a commit that referenced this issue Feb 18, 2025
Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
tjzel added a commit that referenced this issue Feb 18, 2025
Turns out that `sideEffects` field was ignored and `isWeb()` check
evaluated to static false, removing `initializers.ts` from the bundle.

Fixes
- #6740
- #6839

Tested it on RNGH web example app using Expo52

Co-authored-by: Michał Bert <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing repro This issue need minimum repro scenario Platform: Android This issue is specific to Android
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants