-
Notifications
You must be signed in to change notification settings - Fork 115
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
Duplicate __self prop found. #244
Comments
My
|
Did you solve this? |
I'm facing the same issue, but I don't have |
Yeah this is pretty important. Any updates? |
Any update here? |
Do you have a solution for this error? |
I found that pinning all metro versions to be in lockstep with each other resolved this issue for me.
|
The problem is that these 2 babel libraries are deprecated for version 73 of RN and version 50 of Expo: metro-react-native-babel-preset, |
Hello, I just had the same problem, the solution was to remove It should look like this:
|
remove module:@react-native/babel-preset and solved |
Removing I suspect the problem originates from the upstreamTransformer function. Since I’m using React Native v0.74, it should be using I adjusted the function to use only Here’s a temporary solution specifically for Bare React Native apps (version >= 0.73) that use Expo libraries: react-native-svg-transformer+1.4.0.patch. If you are using a Bare React Native app with a version < 0.73 with Expo libraries, you could try modifying the patch to include only A permanent fix would likely involve determining whether the project is a Bare React Native app or an Expo app. Related: #333 |
After installing react-native-svg-transformer, and following the setup instructions, verbatim, I get the following error in my app:
I am using the
metro.config.js
exactly as it is posted in setup instructions, and by toggling the linebabelTransformerPath: require.resolve('react-native-svg-transformer'),
I can make the error come and go. (When the line is commented, i get other errors indicating my SVG module is not of the expected type, as one would expect, since it isn't being transformed; I am not concerned about this case.)The text was updated successfully, but these errors were encountered: