Yes
No
react-native -v
: react-native-cli: 2.0.1node -v
: v6.11.2npm -v
: 3.10.10yarn --version
: not usingThen, specify:
(Write your steps here:)
The welcome React-Native screen should appear on the emulator screen.
It throws the below error:
React packager ready.
Loading dependency graph, done.
Bundling `index.android.js` [development, non-minified, hmr disabled] ░░░░░░░░░░░░░
Bundling `index.android.js` [development, non-minified, hmr disabled] 0.0% (0/1), f
ailed.
Bundling `index.android.js` [development, non-minified, hmr disabled] ░░░░░░░░░░░░░
error: bundling failed: "TransformError: D:\\path\\path\\project\\index.android.js: Unex
pected token ) (While processing preset: \"D:\\\\path\\\\path\\\\project\\\\node_modules
\\\\babel-preset-react-native\\\\index.js\")"
It is an empty standard project as it is described in https://facebook.github.io/react-native/docs/getting-started.html > Building Projects with Native Code.
some issue +1
@tudor2it work around: npm install --save-dev [email protected]
+1
@Kennytian workaround fixed it
@Kennytian Thank you for the solution. I have known about the workaround. The issue has appeared a few days ago and I've expected to disappear. But it is still there and it's frustrating that the react-native team didn't fix it. I'm desperate to finish a project and I'm only struggling with all kind of errors because versions of packages and compilers don't match.
+1
workaround didnt fix it in my app:
npm: 5.0.1
react-native-cli: 2.0.1
react-native: 0.47.1
node: v7.9.0
@facebook-github-bot duplicate #15513
Duplicate of #15513
for yarn used following Commands
yarn remove babel-preset-react-native
yarn add [email protected]
for npm used following Commands
npm uninstall babel-preset-react-native
npm install [email protected]
This works like a charm
@tudor2it work around: npm install --save-dev [email protected]
workaround fixed it for me
@Kennytian workaround fixed it thanks!
@Kennytian workaround fixed it, thank you
@Kennytian fixed it, thank you so much
@ShubhamBabhulkar This fixed my issue as well. Thank you.
@Kennytian Great Thanks it works.. :+1:
step1
npm install --save-dev [email protected]
step2
npm update
@Kennytian fixed it! Great Thanks it works.. :+1:
Gettting this Error In Ios
TransformError: /Users/stellent/Desktop/terapanth/index.ios.js: Couldn't find preset "babel-preset-react-native-stage-0/decorator-support" relative to directory "/Users/stellent/Desktop/terapanth"
Getting similar error in android
Couldn't find preset "babel-preset-react-native-stage-0/decorator-support" relative to directory
{
"presets": [
"babel-preset-react-native-stage-0/decorator-support"
],
"env": {
"development": {
"plugins": [
"transform-react-jsx-source"
]
}
}
}
change to
{
"presets": [
"react-native"
],
"env": {
"development": {
"plugins": [
"transform-react-jsx-source"
]
}
}
}
npm reinstalls did not work for me. Only Yarn method
yarn remove babel-preset-react-native
yarn add [email protected]
I am getting error: bundling failed: TypeError: Cannot read property 'bindings' of null
getting the same error here: Error: Cannot find module '@babel/core'
my package.json https://gist.github.com/wesleyguirra/11cdfbd8669b4783399a8a0bea29ce6a
I love you ma~
@Kennytian
give this man (@Kennytian) a medal
一直挣扎在版本,编译不匹配的坑里,rn team要加油!
Most helpful comment
some issue +1
@tudor2it work around:
npm install --save-dev [email protected]