TransformError with babel-preset-react-native/index.js -
i'm brand new react-native, , trying render first bit of text on screen.
when run react-native run-ios , click sample app, see following error:
index.js exist in project, following code:
'use strict';
module.exports = require('./configs/main');
so far, have tried following:
1) re-installing npm babel-preset-react-native
2) using yarn remove , re-add babel-preset-react-native
yarn remove babel-preset-react-native
yarn add babel-preset-react-native@2.1.0
3) deleting babel.rc entirely
nothing has worked. eager hear advice , suggestions other things try.
this bug in new version of babel-preset-react-native added automatically after run react-native init command
please take @ github issue https://github.com/facebook/react-native/issues/15513
workaround, try change version:
yarn remove babel-preset-react-native yarn add babel-preset-react-native@2.1.0 if that's not work you, try remove trailing comma @ node_modules/babel-preset-react-native/configs/main.js @ code below
Comments
Post a Comment