-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[android / ios] bundling failed: "TransformError #15513
Comments
Had the same issue and after restarting my computer the issue went away for me. You might have to just close and restart your terminal and simulator too. |
+1 experiencing the same issue on |
@tmartres Restarting don't work for me |
Restarting didn't help here too. |
I've just found a workaround:
The hole is probably deeper, but that is works for me. |
I've tried to create a new RN app by RNCA (Expo) and then eject it. Works perfectly fine, although it runs on React Native 0.46.1, so I'm guessing this is an issue with 0.47. |
Thank you for reporting and for the workaround @esganzerla. It seems an issue with @jeanlauliac How should we fix this issue? Add a specific major version in react-native/local-cli/init/init.js Line 91 in a54d449
cc @ericnakagawa who's on call. |
@facebook-github-bot label Tooling |
uninstalling and installing babel-preset-react-native works for me thanks a lot @esganzerla |
Spent a lot of time trying to fix this issue, PR #15516 but I still don't understand why it works. |
I just moved plugins from |
It's because trailing commas in function parameter lists are not supported. react-native/babel-preset/configs/main.js Line 40 in 6ad7e82
|
@charpeni exactly |
Needs node 8. Feel free to remove that and the @Format annotation, I guess. |
Reviewed By: mjesun Differential Revision: D5631078 fbshipit-source-id: a8d4955a723c1846b9406e734c3e3fa2c0df3fb7
It is a bug an the work around that worked for me was to edit dependency of babel in package.json to "babel-preset-react-native": "2.1.0". After which I deleted node_modules and re-installed the npm (npm install). Then it worked like a charm. |
Did you delete node_modules if not delete node_modules and run npm install.
I am certain it will work.
…On Thu, Aug 17, 2017 at 4:02 AM, ShubhamBabhulkar ***@***.***> wrote:
npm add ***@***.***
Command not Work, please give me any Solution
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#15513 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALDc7zu166CVKRCKtLVtZaoWhWTWxOQyks5sZA-jgaJpZM4O5FBE>
.
|
This fixed it for me: |
Thx a lot dude @esganzerla , your workaround fixed my problem |
Since I'm not using yarn, @Ibrokola 's solution fixed it for me (Thanks!), but I'm curious about what that version jump (3 -> 2) could do. |
for my case , it need execute |
For npm Following Command are work for me |
If you Still Getting Problem in babel-preset-react-native then try Following Process package.json "dependencies": { Delete 'Node_modules' folder from react native project manually |
@ShubhamBabhulkar, I think there's a bug 🐜 in 3.0 that needs to be fixed...
…On Fri, Aug 18, 2017 at 1:34 AM ShubhamBabhulkar ***@***.***> wrote:
Nice @Ibrokola <https://github.com/ibrokola>, But we need to do same
thing every time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15513 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALDc79xluQWLtQPHtA5VDmM3fFtHIR3xks5sZT58gaJpZM4O5FBE>
.
|
Check const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
// ↑ here, delete it
}); |
@Ibrokola's solution fixed this issue for me. Thanks! |
@ShubhamBabhulkar it works for me,thank you! |
@Ibrokola thanks worked for me.
|
this works ..thanks guys |
@esganzerla thank you a lot. I uninstall yarn and reinstall it. It worked for me. |
thanks a lot @esganzerla, i installed yarn and then added that babel-preset... and it worked for me! |
Hey Guys-
|
@cheng-kang your answer worked. I did all the steps necessary, yarn delete yarn add, npm install, uninstall, babel preset version upgrades but nothing worked but your solution. |
I'm running into this in
|
@nikkwong are you able to solve this issue? |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v
:react-native-cli: 2.0.0
react-native: n/a - not inside a React Native project directory
(I was inside the folder, version is: 0.47.1)
node -v
: v7.10.0npm -v
: 4.2.0yarn --version
: 0.17.10Then, specify:
Steps to Reproduce
react-native init rn_reproduce_transform_error
cd rn_reproduce_transform_error
react-native run-ios
orreact-native run-android
Expected Behavior
Should show the default "Welcome to React Native!" screen.
Actual Behavior
Same error occurs when I tried to update RN version to 0.48.0-rc.1
Reproducible Demo
https://github.com/esganzerla/rn_reproduce_transform_error
Notes
The text was updated successfully, but these errors were encountered: